<template>
	<view>
		<view class="index_fix_top_box">
			<image class="indexFixBack" src="../../static/images/png01.png"></image>
			<view class="indexFixMain">
				<view :style="{height:statusHeight+'px'}"></view>
				<view class="navbar_wrapper" :style="{paddingRight: rightSafeArea+'px'}">
					<view class="navbar_wrapper_left">
						<view class="navbar_wrapper_left_icon" hover-class="hover_class" @click="showdriver()">
							<image
								src="../../static/images/icon01.png"
								mode=""></image>
						</view>
						<view class="navbar_wrapper_left_status" @click="handleShowChange()">
							<view class="navbar_wrapper_left_status_icon">
								<image
									src="../../static/images/icon02.png"
									mode="" v-if="user_status==1"></image>
								<image
									src="https://www.cccshansong.com/chong_weapp/index_icon3.png"
									mode="" v-if="user_status==0"></image>
							</view>
							<view class="navbar_wrapper_left_status_text">{{user_status==1?'上线中':'休息中'}}</view>
							<view class="navbar_wrapper_left_status_icon1">
								<image
									src="../../static/images/icon03.png"
									mode=""></image>
							</view>
						</view>
					</view>
					<view class="navbar_wrapper_right" @click="goNotice()">
						<view class="navbar_wrapper_right_dian" v-if="no_read_num>0"></view>
						<image src="../../static/images/icon04.png"
							mode=""></image>
					</view>
				</view>
				<view class="navbar_wrapper_left_status_absolute" :style="{top:statusHeight +33 + 'px'}"
					v-if="show_status_mask" @click="handleChange(user_status)">
					<view class="navbar_wrapper_left_status_absolute_text" v-if="user_status==1">
						<image src="https://www.cccshansong.com/chong_weapp/xiuxi.png" mode="">
						</image>休息
					</view>
					<view class="navbar_wrapper_left_status_absolute_text" v-if="user_status==0">
						<image src="https://www.cccshansong.com/chong_weapp/xiuxi.png" mode="">
						</image>上线
					</view>
				</view>
				<view @click="goTask()" class="noticeBar" v-if="isLogin&&notice_text!=''">
					<uv-notice-bar :speed='60' :text="notice_text"></uv-notice-bar>
				</view>
				<view class="vTabsBox" style="width: 750rpx;">
					<v-tabs v-model="current" :lineColor='lineColor' :lineScale="0.2" :fontSize="'32rpx'" :lineHeight="'6rpx'" :bgColor="''" :scroll="false" :tabs="tabs"
						@change="changeTab"></v-tabs>
				</view>
			</view>
		</view>
		<uv-notify ref="notify" ></uv-notify>

		<swiper :disable-touch="touch_status" :current="current" @change="changeSwiper" :circular="false" @animationfinish="animationfinish"
			class="index_swiper_box">
			<swiper-item @touchmove.stop="false">
				<scroll-view ref="scrollView" scroll-y class="scroll_item_box" style="padding-top: 0;position: relative;"   @scrolltolower="onreachBottom1"
					:lower-threshold="50" :refresher-enabled="isRefreshEnabled1"  @refresherrefresh="onRefresherrefresh1"
					:refresher-triggered="isTriggered1" :scroll-top="scrollTop1" @scroll="scroll1"
					:show-scrollbar="false">
					<view style="height: 32rpx;"></view>
					<view class="orderList">
						<view class="li" v-for="(data,index) in list" :key="index"  v-if="data.status=='PENDING'" @click="handleDetail(data.id)">
							<view class="top">
								<view class="fl">
									<view class="h1"><text>￥</text>{{data.price_complete.rider_actual_price}}</view>
									<view v-if="data.send_type == 2">
										<view class="h2">一对一</view>
									</view>
									<view v-else>
										<view class="h2" v-if="data.type == 1">外卖配送</view>
										<view class="h2" v-if="data.type == 2">帮送</view>
										<view class="h2" v-if="data.type == 3">帮取</view>
										<view class="h2" v-if="data.type == 4">一对一</view>
										<view class="h2" v-if="data.type == 5">帮我买</view>
									</view>

								</view>
								<view class="fr" v-if="data.is_pre_order!=1">
									<template v-if="data.delay_delivery_time[0]>=0">
										<view class="h2">{{data.delay_delivery_time[0]}}分钟内</view>
										<view class="h3"> ({{data.delay_delivery_time[1].slice(11,16)}})前送达</view>
									</template>
									<template v-if="data.delay_delivery_time[0]<0">
										<view class="h2">[已超时]{{data.delay_delivery_time[1].slice(5,16)}}</view>
										<view class="h3">前送达</view>
									</template>
								</view>
								<view class="fr" v-if="data.is_pre_order==1">
									<view class="h1" v-if="data.delay_delivery_time[0] >= 0">
										<image src="../../static/images/icon06.png"></image>
										<text>预</text>
									</view>
									<view class="h2" v-else>[已超时]</view>
									<view class="h2" v-if="data.delay_delivery_time">{{data.delay_delivery_time[1].substring(5,22)}}</view>
<!--									<view class="h3">送达</view>-->
								</view>
							</view>
							<view class="center">
								<view class="start">
									<view class="fl">
										<view class="h1" v-if="data.merchant">
											{{data.merchant.shop_name?data.merchant.shop_name:'--'}}
										</view>
										<view class="h2">
											<image src="../../static/images/icon07.png"></image>
											<view class="h2Con">
												{{data.sender_address}}
											</view>
										</view>
									</view>
									<view class="fr">
										<view class="h1">{{data.receiver_address_detail_complete.rider}}</view>
										<view class="h2">KM</view>
									</view>
								</view>
								<view class="end">
									<view class="fl">
										<view class="h1">{{data.receiver_address}}</view>
									</view>
									<view class="fr">
										<view class="h1">{{data.sender_address_detail_complete.rider}}</view>
										<view class="h2">KM</view>
									</view>
								</view>
								<view class="notes">
									<view class="h1">备注：</view>
									<view class="h2">{{data.item_type ? data.item_type + ',' : ''}}{{data.delivery_method1 ? data.delivery_method1 + ',' : ''}}{{data.remark}}</view>
								</view>
								<view class="slider" v-if="userinfo.info.is_slide == 1">

									<move-verify :style="{ marginTop: '40rpx'} " @vertify='vertifyResult($event,data.id)'></move-verify>
<!--									<liu-slider-verify offset="50" dBgColor="rgba(65,138,255,1)" sBgColor="rgba(65,138,255,1)" ref="verify" @change='vertifyResult($event,data.id)'></liu-slider-verify>-->
								</view>
								<view class="scroll_item_order_btn_box" v-else>
									<view class="scroll_item_order_btn2" hover-class="hover_class"
										  @click.stop="handleGrab(data.id,data)">点击抢单</view>
								</view>
							</view>
						</view>
					</view>
					<!--<view class="scroll_item_order_box" v-for="(data,index) in list" :key="index"  v-if="data.status=='PENDING'"
						@click="handleDetail(data.id)">
						<view class="scroll_item_order_top_box">
							&lt;!&ndash; <view class="scroll_item_order_top_time">
								<image
									src="https://www.cccshansong.com/chong_weapp/time_icon.png"
									mode=""></image>{{data.delay_delivery_time.slice(5,16)}} <text v-if="data.is_pre_order==1">预约单</text>
							</view> &ndash;&gt;
							<view class="scroll_item_order_top_time" v-if="data.is_pre_order!=1">
								<text v-if="data.delay_delivery_time[0]>=0">
									<text style="font-weight: bold;">{{data.delay_delivery_time[0]}}分钟内 </text>
									<text style="color: #333;">(</text>
									<text style="color: #333;">
									{{data.delay_delivery_time[1].slice(11,16)}}
									</text>
									<text style="color: #333;">前)送达</text>
								</text>
								<text v-if="data.delay_delivery_time[0]<0">
									<text style="font-weight: bold;">[已超时]{{data.delay_delivery_time[1].slice(5,16)}} </text>
									<text style="color: #333;">前送达</text>
								</text>
							</view>
							<view class="scroll_item_order_top_time" v-if="data.is_pre_order==1">
								<text class="yu">预</text><text style="font-weight: bold;"><text v-if="data.delay_delivery_time[0]<0"> [已超时]</text>{{data.delay_delivery_time[1].slice(5,16)}}</text>  <text style="color: #333;">送达 </text>
							</view>
							<view class="scroll_item_order_top_price">
								<view class="scroll_item_order_top_price_tip" v-if="data.price_complete.bad_weather!=0">含天气奖励¥{{data.price_complete.bad_weather}}</view>
								<view class="scroll_item_order_top_price_tip" v-if="data.price_complete.bad_weather==0&&data.price_complete.special_time_fee!=0">含时段奖励¥{{data.price_complete.special_time_fee}}</view>
								<view class="scroll_item_order_top_price_num" v-if="data.price_complete">
									<text>¥</text>{{data.price_complete.rider_actual_price}}
								</view>
							</view>
						</view>
						<view class="scroll_item_order_center_box">
							<view class="qu_address_item_box" >
								<view class="qu_address_item_left_box" >
									<view class="qu_address_icon_box_content">
										<view class="qu_address_icon_box">
											<image
												src="https://www.cccshansong.com/chong_weapp/qu_icon.png"
												mode="" ></image>
											<view class="qu_address_distance_title" style="color: #333;font-size: 28rpx;font-weight: bold;">{{data.receiver_address_detail_complete.rider}}</view>
											<view class="qu_address_distance_title" style="color: #606266;font-size: 18rpx;margin-top: -6rpx;">KM</view>
										</view>
										<view class="qu_address_xian_box">
											<image
												src="https://www.cccshansong.com/chong_weapp/qu_address_xian_box1.png"
												mode="" ></image>
											&lt;!&ndash; <view class="qu_address_xian_box_container">
												<view class="qu_address_distance_title" style="color: #333;font-size: 18rpx;">
												{{data.sender_address_detail_complete.rider}}
												</view>
												<view class="qu_address_distance_title" style="color: #606266;font-size: 12rpx;margin-top: -6rpx;">KM</view>
											</view> &ndash;&gt;
										</view>
									</view>

									<view class="qu_address_box">
										<view class="qu_address_title" style="font-weight: bold;" v-if="data.merchant">{{data.merchant.shop_name?data.merchant.shop_name:'&#45;&#45;'}}</view>
										<view class="qu_address_desc" style="padding-bottom: 6rpx;">{{data.sender_address}}
										</view>
									</view>
								</view>
								<view class="dh_icon_box" @click.stop="handleMap(data.sender_address_detail_complete,data.sender_address)">
									<image
										src="https://www.cccshansong.com/chong_weapp/dh_icon.png"
										mode=""></image>
								</view>
							</view>
							<view class="qu_address_item_box" >
								<view class="qu_address_item_left_box">
									<view class="qu_address_icon_box_content">
										<view class="qu_address_icon_box">
											<image
												src="https://www.cccshansong.com/chong_weapp/song_icon.png"
												mode="" ></image>
											<view class="qu_address_distance_title" style="color: #333;font-size: 28rpx;font-weight: bold;">{{data.sender_address_detail_complete.rider}}</view>
											<view class="qu_address_distance_title" style="color: #606266;font-size: 18rpx;margin-top: -6rpx;">KM</view>
										</view>
									</view>

									<view class="qu_address_box">
										<view class="qu_address_title">{{data.receiver_address}}</view>
										&lt;!&ndash; <view class="qu_address_desc">沂蒙路九州购物广场沂蒙路九州购物广场沂蒙路九州购物广场沂蒙路九州购物广场沂蒙路九州购物广场档位B-02号</view>	 &ndash;&gt;
									</view>
								</view>
								<view class="dh_icon_box"
									@click.stop="handleMap(data.receiver_address_detail_complete,data.receiver_address)">
									<image
										src="https://www.cccshansong.com/chong_weapp/dh_icon.png"
										mode=""></image>
								</view>
							</view>
							<view class="scroll_item_order_status_box">
								<view class="scroll_item_order_status">外卖配送</view>
								<view class="scroll_item_order_no_score" v-if="data.source==1">麦芽田</view>
								<view class="scroll_item_order_no_score" v-if="data.source==2">青云</view>
								<view class="scroll_item_order_no_right" v-if="data.order_sequence!=null"><text>#</text>{{data.order_sequence}}</view>
								&lt;!&ndash; <view class="scroll_item_order_status scroll_item_order_status1">帮我送</view>
								<view class="scroll_item_order_status scroll_item_order_status2">帮我买</view>
								<view class="scroll_item_order_status scroll_item_order_status3">帮我取</view> &ndash;&gt;
							</view>
						</view>
						<view class="scroll_item_order_remark_box" v-if="data.remark!=null">
							<text>备注：</text>{{data.remark}}
						</view>
						<view class="scroll_item_order_btn_box">
							<view class="scroll_item_order_btn1" hover-class="hover_class"
								@click.stop="handleRefuse(data.id)">拒绝接单</view>
							<view class="scroll_item_order_btn2" hover-class="hover_class"
								@click.stop="handleGrab(data.id)">抢 单</view>
						</view>
					</view>-->
					<view class="page_tip" v-if="list.length>0">我是有底线的~</view>
					<view class="null_box" v-if="isLogin&&list.length==0" style="padding-top: 300rpx;">
						<image src="../../static/images/png04.png" mode="" mode="widthFix"></image>
						<view class="null_tip">附近暂时没有任务~</view>
					</view>
					<view class="null_box" v-if="!isLogin" style="padding-top:300rpx;">
						<image src="../../static/images/png04.png" mode="" mode="widthFix"></image>
						<view class="null_tip">您当前暂未登录~</view>
						<view class="null_btn" @click="goLogin()">去登录</view>
					</view>
					<view style="height:80rpx;"></view>
				</scroll-view>
			</swiper-item>
			<!--<swiper-item @touchmove.stop="false">
				<scroll-view ref="scrollView" scroll-y class="scroll_item_box" style="padding-top: 0;position: relative;"   @scrolltolower="onreachBottom1"
					:lower-threshold="50" :refresher-enabled="isRefreshEnabled1"  @refresherrefresh="onRefresherrefresh1"
					:refresher-triggered="isTriggered1" :scroll-top="scrollTop1" @scroll="scroll1"
					:show-scrollbar="false">
					<view style="height: 32rpx;"></view>
					<view class="orderList">
						<view class="li" v-for="(data,index) in list" :key="index"  v-if="data.status=='PENDING' && getTimeDifference(data.short_dispach_expire * 1000) > 0" @click="handleDetail(data.id)">
							<view class="top">
								<view class="fl">
									<view class="h1"><text>￥</text>{{data.price_complete.rider_actual_price}}</view>
									<view class="h2" v-if="data.type == 1">外卖配送</view>
									<view class="h2" v-if="data.type == 2">帮送</view>
									<view class="h2" v-if="data.type == 3">帮取</view>
									<view class="h2" v-if="data.type == 4">一对一</view>
									<view class="h2" v-if="data.type == 5">帮我买</view>
								</view>
								<view class="fr" v-if="data.is_pre_order!=1">
									<template v-if="data.delay_delivery_time[0]>=0">
										<view class="h2">{{data.delay_delivery_time[0]}}分钟内</view>
										<view class="h3"> ({{data.delay_delivery_time[1].slice(11,16)}})前送达</view>
									</template>
									<template v-if="data.delay_delivery_time[0]<0">
										<view class="h2">[已超时]{{data.delay_delivery_time[1].slice(5,16)}}</view>
										<view class="h3">前送达</view>
									</template>
								</view>
								<view class="fr" v-if="data.is_pre_order==1">
									<view class="h1" v-if="data.delay_delivery_time[0] >= 0">
										<image src="../../static/images/icon06.png"></image>
										<text>预</text>
									</view>
									<view class="h2" v-else>[已超时]</view>
									<view class="h2" v-if="data.appoint_at">{{data.appoint_at.substring(5,22)}}</view>
									<view class="h3">送达</view>
								</view>
							</view>
							<view class="center">
								<view class="start">
									<view class="fl">
										<view class="h1" v-if="data.merchant">
											{{data.merchant.shop_name?data.merchant.shop_name:'&#45;&#45;'}}
										</view>
										<view class="h2">
											<image src="../../static/images/icon07.png"></image>
											<view class="h2Con">
												{{data.sender_address}}
											</view>
										</view>
									</view>
									<view class="fr">
										<view class="h1">{{data.receiver_address_detail_complete.rider}}</view>
										<view class="h2">KM</view>
									</view>
								</view>
								<view class="end">
									<view class="fl">
										<view class="h1">{{data.receiver_address}}</view>
									</view>
									<view class="fr">
										<view class="h1">{{data.sender_address_detail_complete.rider}}</view>
										<view class="h2">KM</view>
									</view>
								</view>
								<view class="notes">
									<view class="h1">备注：</view>
									<view class="h2">{{data.item_type ? data.item_type + ',' : ''}}{{data.delivery_method1 ? data.delivery_method1 + ',' : ''}}{{data.remark}}</view>
								</view>
								<view class="slider" v-if="userinfo.info.is_slide == 1">

									<move-verify :style="{ marginTop: '40rpx'} " :shortDispachExpire="getTimeDifference(data.short_dispach_expire * 1000)" @coutDownChangeTwo="coutDownChangeTwo" @vertify='vertifyResult($event,data.id)'></move-verify>
								</view>
								<view class="scroll_item_order_btn_box" v-else>
									<view class="scroll_item_order_btn2" hover-class="hover_class"
										  @click.stop="handleGrab(data.id)" v-if="getTimeDifference(data.short_dispach_expire * 1000) > 0">
										点击抢单(
										<u-count-down :time="getTimeDifference(data.short_dispach_expire * 1000)" format="mm:ss" @change="coutDownChange"></u-count-down>)
									</view>
								</view>
							</view>
						</view>
					</view>
					&lt;!&ndash;<view class="scroll_item_order_box" v-for="(data,index) in list" :key="index"  v-if="data.status=='PENDING'"
						@click="handleDetail(data.id)">
						<view class="scroll_item_order_top_box">
							&lt;!&ndash; <view class="scroll_item_order_top_time">
								<image
									src="https://www.cccshansong.com/chong_weapp/time_icon.png"
									mode=""></image>{{data.delay_delivery_time.slice(5,16)}} <text v-if="data.is_pre_order==1">预约单</text>
							</view> &ndash;&gt;
							<view class="scroll_item_order_top_time" v-if="data.is_pre_order!=1">
								<text v-if="data.delay_delivery_time[0]>=0">
									<text style="font-weight: bold;">{{data.delay_delivery_time[0]}}分钟内 </text>
									<text style="color: #333;">(</text>
									<text style="color: #333;">
									{{data.delay_delivery_time[1].slice(11,16)}}
									</text>
									<text style="color: #333;">前)送达</text>
								</text>
								<text v-if="data.delay_delivery_time[0]<0">
									<text style="font-weight: bold;">[已超时]{{data.delay_delivery_time[1].slice(5,16)}} </text>
									<text style="color: #333;">前送达</text>
								</text>
							</view>
							<view class="scroll_item_order_top_time" v-if="data.is_pre_order==1">
								<text class="yu">预</text><text style="font-weight: bold;"><text v-if="data.delay_delivery_time[0]<0"> [已超时]</text>{{data.delay_delivery_time[1].slice(5,16)}}</text>  <text style="color: #333;">送达 </text>
							</view>
							<view class="scroll_item_order_top_price">
								<view class="scroll_item_order_top_price_tip" v-if="data.price_complete.bad_weather!=0">含天气奖励¥{{data.price_complete.bad_weather}}</view>
								<view class="scroll_item_order_top_price_tip" v-if="data.price_complete.bad_weather==0&&data.price_complete.special_time_fee!=0">含时段奖励¥{{data.price_complete.special_time_fee}}</view>
								<view class="scroll_item_order_top_price_num" v-if="data.price_complete">
									<text>¥</text>{{data.price_complete.rider_actual_price}}
								</view>
							</view>
						</view>
						<view class="scroll_item_order_center_box">
							<view class="qu_address_item_box" >
								<view class="qu_address_item_left_box" >
									<view class="qu_address_icon_box_content">
										<view class="qu_address_icon_box">
											<image
												src="https://www.cccshansong.com/chong_weapp/qu_icon.png"
												mode="" ></image>
											<view class="qu_address_distance_title" style="color: #333;font-size: 28rpx;font-weight: bold;">{{data.receiver_address_detail_complete.rider}}</view>
											<view class="qu_address_distance_title" style="color: #606266;font-size: 18rpx;margin-top: -6rpx;">KM</view>
										</view>
										<view class="qu_address_xian_box">
											<image
												src="https://www.cccshansong.com/chong_weapp/qu_address_xian_box1.png"
												mode="" ></image>
											&lt;!&ndash; <view class="qu_address_xian_box_container">
												<view class="qu_address_distance_title" style="color: #333;font-size: 18rpx;">
												{{data.sender_address_detail_complete.rider}}
												</view>
												<view class="qu_address_distance_title" style="color: #606266;font-size: 12rpx;margin-top: -6rpx;">KM</view>
											</view> &ndash;&gt;
										</view>
									</view>

									<view class="qu_address_box">
										<view class="qu_address_title" style="font-weight: bold;" v-if="data.merchant">{{data.merchant.shop_name?data.merchant.shop_name:'&#45;&#45;'}}</view>
										<view class="qu_address_desc" style="padding-bottom: 6rpx;">{{data.sender_address}}
										</view>
									</view>
								</view>
								<view class="dh_icon_box" @click.stop="handleMap(data.sender_address_detail_complete,data.sender_address)">
									<image
										src="https://www.cccshansong.com/chong_weapp/dh_icon.png"
										mode=""></image>
								</view>
							</view>
							<view class="qu_address_item_box" >
								<view class="qu_address_item_left_box">
									<view class="qu_address_icon_box_content">
										<view class="qu_address_icon_box">
											<image
												src="https://www.cccshansong.com/chong_weapp/song_icon.png"
												mode="" ></image>
											<view class="qu_address_distance_title" style="color: #333;font-size: 28rpx;font-weight: bold;">{{data.sender_address_detail_complete.rider}}</view>
											<view class="qu_address_distance_title" style="color: #606266;font-size: 18rpx;margin-top: -6rpx;">KM</view>
										</view>
									</view>

									<view class="qu_address_box">
										<view class="qu_address_title">{{data.receiver_address}}</view>
										&lt;!&ndash; <view class="qu_address_desc">沂蒙路九州购物广场沂蒙路九州购物广场沂蒙路九州购物广场沂蒙路九州购物广场沂蒙路九州购物广场档位B-02号</view>	 &ndash;&gt;
									</view>
								</view>
								<view class="dh_icon_box"
									@click.stop="handleMap(data.receiver_address_detail_complete,data.receiver_address)">
									<image
										src="https://www.cccshansong.com/chong_weapp/dh_icon.png"
										mode=""></image>
								</view>
							</view>
							<view class="scroll_item_order_status_box">
								<view class="scroll_item_order_status">外卖配送</view>
								<view class="scroll_item_order_no_score" v-if="data.source==1">麦芽田</view>
								<view class="scroll_item_order_no_score" v-if="data.source==2">青云</view>
								<view class="scroll_item_order_no_right" v-if="data.order_sequence!=null"><text>#</text>{{data.order_sequence}}</view>
								&lt;!&ndash; <view class="scroll_item_order_status scroll_item_order_status1">帮我送</view>
								<view class="scroll_item_order_status scroll_item_order_status2">帮我买</view>
								<view class="scroll_item_order_status scroll_item_order_status3">帮我取</view> &ndash;&gt;
							</view>
						</view>
						<view class="scroll_item_order_remark_box" v-if="data.remark!=null">
							<text>备注：</text>{{data.remark}}
						</view>
						<view class="scroll_item_order_btn_box">
							<view class="scroll_item_order_btn1" hover-class="hover_class"
								@click.stop="handleRefuse(data.id)">拒绝接单</view>
							<view class="scroll_item_order_btn2" hover-class="hover_class"
								@click.stop="handleGrab(data.id)">抢 单</view>
						</view>
					</view>&ndash;&gt;
					<view class="page_tip" v-if="list.length>0">我是有底线的~</view>
					<view class="null_box" v-if="isLogin&&list.length==0" style="padding-top: 300rpx;">
						<image src="../../static/images/png04.png" mode="" mode="widthFix"></image>
						<view class="null_tip">附近暂时没有任务~</view>
					</view>
					<view class="null_box" v-if="!isLogin" style="padding-top:300rpx;">
						<image src="../../static/images/png04.png" mode="" mode="widthFix"></image>
						<view class="null_tip">您当前暂未登录~</view>
						<view class="null_btn" @click="goLogin()">去登录</view>
					</view>
					<view style="height:80rpx;"></view>
				</scroll-view>
			</swiper-item>-->
			<swiper-item @touchmove.stop="false">
				<scroll-view scroll-y class="scroll_item_box" @scrolltolower="onreachBottom2" :lower-threshold="50"
					:refresher-enabled="isRefreshEnabled2" @refresherrefresh="onRefresherrefresh2" :refresher-triggered="isTriggered2"
					:scroll-top="scrollTop2" @scroll="scroll2" :show-scrollbar="false">
					<view style="height: 32rpx;"></view>
					<view class="orderList">
						<view class="li" v-for="(data,index) in list" :key="index"  v-if="data.status=='PICKUP' || data.status=='GRABBED'" @click="handleDetail(data.id)">
							<view class="top">
								<view class="fl">
									<view class="h1"><text>￥</text>{{data.price_complete.rider_actual_price}}</view>
									<view v-if="data.send_type == 2">
										<view class="h2">一对一</view>
									</view>
									<view v-else>
										<view class="h2" v-if="data.type == 1">外卖配送</view>
										<view class="h2" v-if="data.type == 2">帮送</view>
										<view class="h2" v-if="data.type == 3">帮取</view>
										<view class="h2" v-if="data.type == 4">一对一</view>
										<view class="h2" v-if="data.type == 5">帮我买</view>
									</view>
								</view>
								<view class="fr" v-if="data.is_pre_order!=1">
									<template v-if="data.delay_delivery_time[0]>=0">
										<view class="h2">{{data.delay_delivery_time[0]}}分钟内</view>
										<view class="h3"> ({{data.delay_delivery_time[1].slice(11,16)}})前送达</view>
									</template>
									<template v-if="data.delay_delivery_time[0]<0">
										<view class="h2">[已超时]{{data.delay_delivery_time[1].slice(5,16)}}</view>
										<view class="h3">前送达</view>
									</template>
								</view>
								<view class="fr" v-if="data.is_pre_order==1">
									<view class="h1" v-if="data.delay_delivery_time[0] >= 0">
										<image src="../../static/images/icon06.png"></image>
										<text>预</text>
									</view>
									<view class="h2" v-else>[已超时]</view>
									<view class="h2" v-if="data.delay_delivery_time">{{data.delay_delivery_time[1].substring(5,22)}}</view>
									<!--									<view class="h3">送达</view>-->
								</view>
							</view>
							<view class="center">
								<view class="start">
									<view class="fl">
										<view class="h1" v-if="data.merchant">
											{{data.merchant.shop_name?data.merchant.shop_name:'--'}}
										</view>
										<view class="h2">
											<image src="../../static/images/icon07.png"></image>
											<view class="h2Con">
												{{data.sender_address}}
											</view>
										</view>
									</view>
									<view class="fr">
										<view class="h1">{{data.receiver_address_detail_complete.rider}}</view>
										<view class="h2">KM</view>
									</view>
								</view>
								<view class="end">
									<view class="fl">
										<view class="h1">{{data.receiver_address}}</view>
									</view>
									<view class="fr">
										<view class="h1">{{data.sender_address_detail_complete.rider}}</view>
										<view class="h2">KM</view>
									</view>
								</view>
								<view class="notes">
									<view class="h1">备注：</view>
									<view class="h2">{{data.item_type ? data.item_type + ',' : ''}}{{data.delivery_method1 ? data.delivery_method1 + '，' : ''}}{{data.remark}}</view>
								</view>
								<!--<view class="slider">
									<move-verify :style="{ marginTop: '40rpx'} " @vertify='vertifyResult($event,data.id)'></move-verify>
								</view>-->
								<view class="btnList">
									<view class="ol blue" style="width: calc(33.333% - 13rpx)" @click.stop="toChat(data)">
										<image src="../../static/images/icon48.png"></image>
										<text>聊天</text>
									</view>
									<view class="ol blue" style="width: calc(33.333% - 13rpx)" @click.stop="handleCallStore(data.sender_phone)">
										<image src="../../static/images/icon49.png"></image>
										<text>电话</text>
									</view>
									<view class="ol green" style="width: calc(33.333% - 13rpx)" v-if="data.status=='GRABBED'" @click.stop="handlePick(data.id)">
										<text>我已到店</text>
									</view>
									<view class="ol green" style="width: calc(33.333% - 13rpx)" v-if="data.status=='PICKUP'" @click.stop="handleDelivery(data.id)">
										<text>我已取货</text>
									</view>
								</view>
								<!--<view class="scroll_item_order_btn_box">
									<view class="scroll_item_order_btn3" hover-class="hover_class"
										  @click.stop="handleCallStore(data.sender_phone)">
										<image
												src="https://www.cccshansong.com/chong_weapp/list_phone.png"
												mode=""></image>
										<text>联系商家</text>
									</view>
									<view class="scroll_item_order_btn4" hover-class="hover_class"
										  @click.stop="handlePick(data.id)" v-if="data.status=='GRABBED'"
										  style="background-color: #418AFF;">我已到店</view>
									<view class="scroll_item_order_btn4" hover-class="hover_class"
										  @click.stop="handleDelivery(data.id)" v-if="data.status=='PICKUP'">我已取货</view>

								</view>-->
								<!--<view class="scroll_item_order_btn_box">
									<view class="scroll_item_order_btn2" hover-class="hover_class"
										  @click.stop="handleGrab(data.id)">抢 单</view>
								</view>-->
							</view>
						</view>
					</view>
					<!--<view class="scroll_item_order_box" v-for="(data,index) in list" v-if="data.status=='PICKUP' || data.status=='GRABBED'"  :key="index"
						@click="handleDetail(data.id)">
						<view class="scroll_item_order_top_box">
							&lt;!&ndash; <view class="scroll_item_order_top_time">
								<image
									src="https://www.cccshansong.com/chong_weapp/time_icon.png"
									mode=""></image>
								{{data.delay_delivery_time.slice(5,16)}}
								<text v-if="data.is_pre_order==1">预约单</text>
							</view> &ndash;&gt;
							<view class="scroll_item_order_top_time" v-if="data.is_pre_order!=1">
								<text v-if="data.delay_delivery_time[0]>=0">
									<text style="font-weight: bold;">{{data.delay_delivery_time[0]}}分钟内 </text>
									<text style="color: #333;">(</text>
									<text style="color: #333;">
									{{data.delay_delivery_time[1].slice(11,16)}}
									</text>
									<text style="color: #333;">前)送达</text>
								</text>
								<text v-if="data.delay_delivery_time[0]<0">
									<text style="font-weight: bold;">[已超时]{{data.delay_delivery_time[1].slice(5,16)}} </text>
									<text style="color: #333;">前送达</text>
								</text>
							</view>

							<view class="scroll_item_order_top_time" v-if="data.is_pre_order==1">
								<text class="yu">预</text>
								<text style="font-weight: bold;">
									<text v-if="data.delay_delivery_time[0]<0"> [已超时]</text> {{data.delay_delivery_time[1].slice(5,16)}}
								</text>
								<text style="color: #333;">送达 </text>
							</view>
							<view class="scroll_item_order_top_price">
								<view class="scroll_item_order_top_price_tip" v-if="data.price_complete.bad_weather!=0">含天气奖励¥{{data.price_complete.bad_weather}}</view>
								<view class="scroll_item_order_top_price_tip" v-if="data.price_complete.bad_weather==0&&data.price_complete.special_time_fee!=0">含时段奖励¥{{data.price_complete.special_time_fee}}</view>
								<view class="scroll_item_order_top_price_num" v-if="data.price_complete">
									<text>¥</text>{{data.price_complete.rider_actual_price}}
								</view>
							</view>
						</view>
						<view class="scroll_item_order_center_box">
							<view class="qu_address_item_box">
								<view class="qu_address_item_left_box" >
									<view class="qu_address_icon_box_content">
										<view class="qu_address_icon_box">
											<image
												src="https://www.cccshansong.com/chong_weapp/qu_icon.png"
												mode="" ></image>
											<view class="qu_address_distance_title" style="color: #333;font-size: 28rpx;font-weight: bold;">{{data.receiver_address_detail_complete.rider}}</view>
											<view class="qu_address_distance_title" style="color: #606266;font-size: 18rpx;margin-top: -6rpx;">KM</view>
										</view>
										<view class="qu_address_xian_box">
											<image
												src="https://www.cccshansong.com/chong_weapp/qu_address_xian_box1.png"
												mode="" ></image>
											&lt;!&ndash; <view class="qu_address_xian_box_container">
												<view class="qu_address_distance_title" style="color: #333;font-size: 18rpx;">
												{{data.sender_address_detail_complete.rider}}
												</view>
												<view class="qu_address_distance_title" style="color: #606266;font-size: 12rpx;margin-top: -6rpx;">KM</view>
											</view> &ndash;&gt;
										</view>
									</view>

									<view class="qu_address_box">
										<view class="qu_address_title"  v-if="data.merchant">{{data.merchant.shop_name?data.merchant.shop_name:'&#45;&#45;'}}</view>
										<view class="qu_address_desc" style="padding-bottom: 6rpx;">{{data.sender_address}}
										</view>
									</view>
								</view>
								<view class="dh_icon_box" @click.stop="handleMap(data.sender_address_detail_complete,data.sender_address)">
									<image
										src="https://www.cccshansong.com/chong_weapp/dh_icon.png"
										mode=""></image>
								</view>
							</view>
							<view class="qu_address_item_box" >
								<view class="qu_address_item_left_box">
									<view class="qu_address_icon_box_content">
										<view class="qu_address_icon_box">
											<image
												src="https://www.cccshansong.com/chong_weapp/song_icon.png"
												mode=""></image>
											<view class="qu_address_distance_title" style="color: #333;font-size: 28rpx;font-weight: bold;">{{data.sender_address_detail_complete.rider}}</view>
											<view class="qu_address_distance_title" style="color: #606266;font-size: 18rpx;margin-top: -6rpx;">KM</view>
										</view>
									</view>
									<view class="qu_address_box">
										<view class="qu_address_title">{{data.receiver_address}}</view>
										&lt;!&ndash; <view class="qu_address_desc">沂蒙路九州购物广场沂蒙路九州购物广场沂蒙路九州购物广场沂蒙路九州购物广场沂蒙路九州购物广场档位B-02号</view>	 &ndash;&gt;
									</view>
								</view>
								<view class="dh_icon_box"
									@click.stop="handleMap(data.receiver_address_detail_complete,data.receiver_address)">
									<image
										src="https://www.cccshansong.com/chong_weapp/dh_icon.png"
										mode=""></image>
								</view>
							</view>
							<view class="scroll_item_order_status_box">
								<view class="scroll_item_order_status">外卖配送</view>
								<view class="scroll_item_order_no_score" v-if="data.source==1">麦芽田</view>
								<view class="scroll_item_order_no_score" v-if="data.source==2">青云</view>
								<view class="scroll_item_order_no_right" v-if="data.order_sequence!=null"><text>#</text>{{data.order_sequence}}</view>
							</view>
						</view>
						<view class="scroll_item_order_remark_box" v-if="data.remark!=null">
							<text>备注：</text>{{data.remark}}
						</view>
						<view class="scroll_item_order_btn_box">
							<view class="scroll_item_order_btn3" hover-class="hover_class"
								@click.stop="handleCallStore(data.sender_phone)">
								<image
									src="https://www.cccshansong.com/chong_weapp/list_phone.png"
									mode=""></image>
								<text>联系商家</text>
							</view>
							<view class="scroll_item_order_btn4" hover-class="hover_class"
								@click.stop="handlePick(data.id)" v-if="data.status=='GRABBED'"
								style="background-color: rgba(255, 107, 0, 1);">我已到店</view>
							<view class="scroll_item_order_btn4" hover-class="hover_class"
								@click.stop="handleDelivery(data.id)" v-if="data.status=='PICKUP'">我已取货</view>

						</view>
					</view>-->

					<view class="page_tip" v-if="list.length>0">我是有底线的~</view>
					<view class="null_box" v-if="isLogin&&list.length==0" style="padding-top: 380rpx;">
						<image src="../../static/images/png04.png" mode="" mode="widthFix"></image>
						<view class="null_tip">这里空空如也~</view>
					</view>
					<view class="null_box" v-if="!isLogin" style="padding-top: 380rpx;">
						<image src="../../static/images/png04.png" mode="" mode="widthFix"></image>
						<view class="null_tip">您当前暂未登录~</view>
						<view class="null_btn" @click="goLogin()">去登录</view>
					</view>
					<view style="height:80rpx;"></view>
				</scroll-view>
			</swiper-item>
			<swiper-item @touchmove.stop="false">
				<scroll-view scroll-y class="scroll_item_box" @scrolltolower="onreachBottom3" :lower-threshold="50"
					:refresher-enabled="isRefreshEnabled3" @refresherrefresh="onRefresherrefresh3" :refresher-triggered="isTriggered3"
					:scroll-top="scrollTop3" @scroll="scroll3" :show-scrollbar="false">
					<view style="height: 32rpx;"></view>
					<view class="orderList">
						<view class="li" v-for="(data,index) in list" :key="index"  v-if="data.status=='DELIVERING'" @click="handleDetail(data.id)">
							<view class="top">
								<view class="fl">
									<view class="h1"><text>￥</text>{{data.price_complete.rider_actual_price}}</view>
									<view v-if="data.send_type == 2">
										<view class="h2">一对一</view>
									</view>
									<view v-else>
										<view class="h2" v-if="data.type == 1">外卖配送</view>
										<view class="h2" v-if="data.type == 2">帮送</view>
										<view class="h2" v-if="data.type == 3">帮取</view>
										<view class="h2" v-if="data.type == 4">一对一</view>
										<view class="h2" v-if="data.type == 5">帮我买</view>
									</view>
								</view>
								<view class="fr" v-if="data.is_pre_order!=1">
									<template v-if="data.delay_delivery_time[0]>=0">
										<view class="h2">{{data.delay_delivery_time[0]}}分钟内</view>
										<view class="h3"> ({{data.delay_delivery_time[1].slice(11,16)}})前送达</view>
									</template>
									<template v-if="data.delay_delivery_time[0]<0">
										<view class="h2">[已超时]{{data.delay_delivery_time[1].slice(5,16)}}</view>
										<view class="h3">前送达</view>
									</template>
								</view>
								<view class="fr" v-if="data.is_pre_order==1">
									<view class="h1" v-if="data.delay_delivery_time[0] >= 0">
										<image src="../../static/images/icon06.png"></image>
										<text>预</text>
									</view>
									<view class="h2" v-else>[已超时]</view>
									<view class="h2" v-if="data.delay_delivery_time">{{data.delay_delivery_time[1].substring(5,22)}}</view>
									<!--									<view class="h3">送达</view>-->
								</view>
							</view>
							<view class="center">
								<view class="start">
									<view class="fl">
										<view class="h1" v-if="data.merchant">
											{{data.merchant.shop_name?data.merchant.shop_name:'--'}}
										</view>
										<view class="h2">
											<image src="../../static/images/icon07.png"></image>
											<view class="h2Con">
												{{data.sender_address}}
											</view>
										</view>
									</view>
									<view class="fr">
										<view class="h1">{{data.receiver_address_detail_complete.rider}}</view>
										<view class="h2">KM</view>
									</view>
								</view>
								<view class="end">
									<view class="fl">
										<view class="h1">{{data.receiver_address}}</view>
									</view>
									<view class="fr">
										<view class="h1">{{data.sender_address_detail_complete.rider}}</view>
										<view class="h2">KM</view>
									</view>
								</view>
								<view class="notes">
									<view class="h1">备注：</view>
									<view class="h2">{{data.item_type ? data.item_type + ',' : ''}}{{data.delivery_method1 ? data.delivery_method1 + '，' : ''}}{{data.remark}}</view>
								</view>
								<!--<view class="scroll_item_order_btn_box">
									<view class="scroll_item_order_btn3" hover-class="hover_class"
										  @click.stop="handleCallStore(data.receiver_phone)">
										<image
												src="https://www.cccshansong.com/chong_weapp/list_phone.png"
												mode=""></image>
										<text>联系客户</text>
									</view>
									<view class="scroll_item_order_btn5" hover-class="hover_class"
										  @click.stop="handleGrabDone(data.id)">我已送达</view>
								</view>-->
								<view class="btnList">
									<view class="ol blue" style="width: calc(33.333% - 13rpx)" @click.stop="toChat(data)">
										<image src="../../static/images/icon48.png"></image>
										<text>聊天</text>
									</view>
									<view class="ol blue" style="width: calc(33.333% - 13rpx)" @click.stop="handleCallStore(data.sender_phone)">
										<image src="../../static/images/icon49.png"></image>
										<text>电话</text>
									</view>
									<view class="ol green" style="width: calc(33.333% - 13rpx)" @click.stop="handleGrabDone(data.id)">
										<text>我已送达</text>
									</view>
								</view>
								<!--<view class="slider">
									<move-verify :style="{ marginTop: '40rpx'} " @vertify='vertifyResult($event,data.id)'></move-verify>
								</view>-->
								<!--<view class="scroll_item_order_btn_box">
									<view class="scroll_item_order_btn2" hover-class="hover_class"
										  @click.stop="handleGrab(data.id)">抢 单</view>
								</view>-->
							</view>
						</view>
					</view>
					<!--<view class="scroll_item_order_box" v-for="(data,index) in list" v-if="data.status=='DELIVERING'" :key="index"
						@click="handleDetail(data.id)">
						<view class="scroll_item_order_top_box">
							&lt;!&ndash; <view class="scroll_item_order_top_time">
								<image
									src="https://www.cccshansong.com/chong_weapp/time_icon.png"
									mode=""></image>{{data.delay_delivery_time.slice(5,16)}}<text v-if="data.is_pre_order==1">预约单</text>
							</view> &ndash;&gt;
							<view class="scroll_item_order_top_time" v-if="data.is_pre_order!=1">
								<text v-if="data.delay_delivery_time[0]>=0">
									<text style="font-weight: bold;">{{data.delay_delivery_time[0]}}分钟内 </text>
									<text style="color: #333;">(</text>
									<text style="color: #333;">
									{{data.delay_delivery_time[1].slice(11,16)}}
									</text>
									<text style="color: #333;">前)送达</text>
								</text>
								<text v-if="data.delay_delivery_time[0]<0">
									<text style="font-weight: bold;">[已超时]{{data.delay_delivery_time[1].slice(5,16)}} </text>
									<text style="color: #333;">前送达</text>
								</text>
							</view>
							<view class="scroll_item_order_top_time" v-if="data.is_pre_order==1">
								<text class="yu">预</text><text style="font-weight: bold;"><text v-if="data.delay_delivery_time[0]<0"> [已超时]</text>{{data.delay_delivery_time[1].slice(5,16)}}</text>  <text style="color: #333;">送达 </text>
							</view>
							<view class="scroll_item_order_top_price">
								<view class="scroll_item_order_top_price_tip" v-if="data.price_complete.bad_weather!=0">含天气奖励¥{{data.price_complete.bad_weather}}</view>
								<view class="scroll_item_order_top_price_tip" v-if="data.price_complete.bad_weather==0&&data.price_complete.special_time_fee!=0">含时段奖励¥{{data.price_complete.special_time_fee}}</view>
								<view class="scroll_item_order_top_price_num">
									<text>¥</text>{{data.price_complete.rider_actual_price}}
								</view>
							</view>
						</view>
						<view class="scroll_item_order_center_box">
							<view class="qu_address_item_box">
								<view class="qu_address_item_left_box" >
									<view class="qu_address_icon_box_content">
										<view class="qu_address_icon_box">
											<image
												src="https://www.cccshansong.com/chong_weapp/qu_icon.png"
												mode="" ></image>
											<view class="qu_address_distance_title" style="color: #333;font-size: 28rpx;font-weight: bold;">{{data.receiver_address_detail_complete.rider}}</view>
											<view class="qu_address_distance_title" style="color: #606266;font-size: 18rpx;margin-top: -6rpx;">KM</view>
										</view>
										<view class="qu_address_xian_box">
											<image
												src="https://www.cccshansong.com/chong_weapp/qu_address_xian_box1.png"
												mode="" ></image>
												&lt;!&ndash; <view class="qu_address_xian_box_container">
													<view class="qu_address_distance_title" style="color: #333;font-size: 18rpx;">
													{{data.sender_address_detail_complete.rider}}
													</view>
													<view class="qu_address_distance_title" style="color: #606266;font-size: 12rpx;margin-top: -6rpx;">KM</view>
												</view> &ndash;&gt;
										</view>
									</view>

									<view class="qu_address_box">
										<view class="qu_address_title" v-if="data.merchant">{{data.merchant.shop_name?data.merchant.shop_name:'&#45;&#45;'}}</view>
										<view class="qu_address_desc" style="padding-bottom: 6rpx;">{{data.sender_address}}
										</view>
									</view>
								</view>
								<view class="dh_icon_box" @click.stop="handleMap(data.sender_address_detail_complete,data.sender_address)">
									<image
										src="https://www.cccshansong.com/chong_weapp/dh_icon.png"
										mode=""></image>
								</view>
							</view>
							<view class="qu_address_item_box">
								<view class="qu_address_item_left_box">
									<view class="qu_address_icon_box_content">
										<view class="qu_address_icon_box">
											<image
												src="https://www.cccshansong.com/chong_weapp/song_icon.png"
												mode="" ></image>
											<view class="qu_address_distance_title" style="color: #333;font-size: 28rpx;font-weight: bold;">{{data.sender_address_detail_complete.rider}}</view>
											<view class="qu_address_distance_title" style="color: #606266;font-size: 18rpx;margin-top: -6rpx;">KM</view>
										</view>
									</view>
									<view class="qu_address_box">
										<view class="qu_address_title">{{data.receiver_address}}</view>
										&lt;!&ndash; <view class="qu_address_desc">沂蒙路九州购物广场沂蒙路九州购物广场沂蒙路九州购物广场沂蒙路九州购物广场沂蒙路九州购物广场档位B-02号</view>	 &ndash;&gt;
									</view>
								</view>
								<view class="dh_icon_box"
									@click.stop="handleMap(data.receiver_address_detail_complete,data.receiver_address)">
									<image
										src="https://www.cccshansong.com/chong_weapp/dh_icon.png"
										mode=""></image>
								</view>
							</view>
							<view class="scroll_item_order_status_box">
								<view class="scroll_item_order_status_phone"
									@click.stop="handleCallStore(data.receiver_phone)">
									{{data.receiver}}:{{data.receiver_phone.slice(0,3)}}****<text>{{data.receiver_phone.slice(7,11)}}</text>
									<image
										src="https://www.cccshansong.com/chong_weapp/phone_icon.png"
										mode=""></image>
								</view>
								&lt;!&ndash; <view class="scroll_item_order_status">外卖配送</view>
								<view class="scroll_item_order_no_score" v-if="data.source==1">麦芽田</view>
								<view class="scroll_item_order_no_score" v-if="data.source==2">青云</view>
								<view class="scroll_item_order_no_right" v-if="data.order_sequence!=null"><text>#</text>{{data.order_sequence}}</view>	 &ndash;&gt;
							</view>
							<view class="scroll_item_order_status_box">
								<view class="scroll_item_order_status">外卖配送</view>
								<view class="scroll_item_order_no_score" v-if="data.source==1">麦芽田</view>
								<view class="scroll_item_order_no_score" v-if="data.source==2">青云</view>
								<view class="scroll_item_order_no_right" v-if="data.order_sequence!=null"><text>#</text>{{data.order_sequence}}</view>
							</view>
						</view>
						<view class="scroll_item_order_remark_box" v-if="data.remark!=null">
							<text>备注：</text>{{data.remark}}
						</view>
						<view class="scroll_item_order_btn_box">
							<view class="scroll_item_order_btn3" hover-class="hover_class"
								@click.stop="handleCallStore(data.receiver_phone)">
								<image
									src="https://www.cccshansong.com/chong_weapp/list_phone.png"
									mode=""></image>
								<text>联系客户</text>
							</view>
							<view class="scroll_item_order_btn5" hover-class="hover_class"
								@click.stop="handleGrabDone(data.id)">我已送达</view>
						</view>
					</view>-->

					<view class="page_tip" v-if="list.length>0">我是有底线的~</view>
					<view class="null_box" v-if="isLogin&&list.length==0" style="padding-top: 380rpx;">
						<image src="../../static/images/png04.png" mode="" mode="widthFix"></image>
						<view class="null_tip">这里空空如也~</view>
					</view>
					<view class="null_box" v-if="!isLogin" style="padding-top: 380rpx;">
						<image src="../../static/images/png04.png" mode="" mode="widthFix"></image>
						<view class="null_tip">您当前暂未登录~</view>
						<view class="null_btn" @click="goLogin()">去登录</view>
					</view>
					<view style="height:80rpx;"></view>
				</scroll-view>
			</swiper-item>
		</swiper>
		<wyb-popup ref="xiuxiPopup" type="center" height="674" width='640' radius="16" :showCloseIcon="false">
			<view class="xiuxi_popup_bj">
				<view style="height: 44rpx;"></view>
				<view class="xiuxi_popup_tip_img">
					<image
						src="https://www.cccshansong.com/chong_weapp/xiuxi_popup_icon.png"
						mode="">
					</image>
				</view>
				<view class="xiuxi_popup_tip_text">休息中，下班路上注意安全</view>
				<view class="xiuxi_popup_count_box" style="margin-top: 40rpx;background: #fff;border-radius: 15rpx;">
					<view class="xiuxi_popup_count_item_box">
						<view class="xiuxi_popup_count_item_title">今日完成单</view>
						<view class="xiuxi_popup_count_item_num" v-if="userinfo!=null">{{userinfo.order_number}}</view>
						<view class="xiuxi_popup_count_item_shu"></view>
					</view>
					<view class="xiuxi_popup_count_item_box">
						<view class="xiuxi_popup_count_item_title">今日配送费/元</view>
						<view class="xiuxi_popup_count_item_num" v-if="userinfo!=null">{{userinfo.fee}}</view>
					</view>
				</view>
				<view class="xiuxi_popup_btn_box" style="margin-top: 32rpx;">
					<view class="xiuxi_popup_btn1" @click="handleCloseXiuPopup(1)">关 闭</view>
					<view class="xiuxi_popup_btn2" @click="handleCloseXiuPopup(2)">查看详情</view>
				</view>
			</view>
		</wyb-popup>
		<wyb-popup ref="qiangPopup" type="center" height="452" width='640' radius="16" :maskClickClose='false'
			:showCloseIcon="false">
			<view class="xiuxi_popup_bj">
				<view style="height: 74rpx;"></view>
				<view class="custom_service_order_reckon_box">
					<image class="rotate-image"
						src="https://www.cccshansong.com/chong_weapp/daojishi.png" mode="">
					</image>
					<view class="custom_service_order_reckon_info_box">{{countdown}}</view>
				</view>
				<view class="xiuxi_popup_tip_text" style="margin-top: 30rpx;">抢单中</view>
			</view>
			<view class="qiang_ucc_popup_tip">正在为您抢单，请稍后...</view>
		</wyb-popup>
		<wyb-popup ref="qiangFailPopup" type="center" height="572" width='640' radius="16" :showCloseIcon="false">
			<view class="xiuxi_popup_bj">
				<view style="height: 74rpx;"></view>
				<view class="xiuxi_popup_tip_img" style="width: 144rpx;height: 144rpx;">
					<image src="https://www.cccshansong.com/chong_weapp/qiang_fail.png"
						mode="">
				</view>
				<view class="xiuxi_popup_tip_text" style="margin-top: 30rpx;">抢单失败</view>
				<view class="qiang_ucc_popup_tip">抢单失败，还是来晚一步...</view>
				<view class="qiang_fail_btn" @click="handleHideFailPopup()">继续抢单</view>
			</view>
		</wyb-popup>
		<wyb-popup ref="qiangMaxPopup" type="center" height="572" width='640' radius="16" :showCloseIcon="false">
			<view class="xiuxi_popup_bj">
				<view style="height: 74rpx;"></view>
				<view class="xiuxi_popup_tip_img" style="width: 144rpx;height: 144rpx;">
					<image src="https://www.cccshansong.com/chong_weapp/qiang_fail.png"
						mode="">
				</view>
				<view class="xiuxi_popup_tip_text" style="margin-top: 30rpx;">抢单失败</view>
				<view class="qiang_ucc_popup_tip">{{max_count_tip}}</view>
				<view class="qiang_fail_btn" @click="handleHideMaxPopup()">我知道了</view>
			</view>

		</wyb-popup>
		<wyb-popup ref="oneToOnePopup" type="center" height="572" width='640' radius="16" :showCloseIcon="false">
			<view class="xiuxi_popup_bj">
				<view style="height: 74rpx;"></view>
				<view class="xiuxi_popup_tip_img" style="width: 144rpx;height: 144rpx;">
					<image src="https://www.cccshansong.com/chong_weapp/qiang_fail.png"
						mode="">
				</view>
				<view class="xiuxi_popup_tip_text" style="margin-top: 30rpx;">抢单失败</view>
				<view class="qiang_ucc_popup_tip" style="padding: 0 25rpx">{{onetoone_count_tip}}</view>
				<view class="qiang_fail_btn" @click="handleHideOneToOnePopup()">我知道了</view>
			</view>

		</wyb-popup>
		<wyb-popup ref="payTipPopup" type="center" height="544" width='640' radius="16" :showCloseIcon="false">
			<view class="xiuxi_popup_bj">
				<view style="height: 74rpx;"></view>
				<view class="xiuxi_popup_tip_img" style="width: 144rpx;height: 144rpx;">
					<image src="https://www.cccshansong.com/chong_weapp/pay_tip_icon.png"
						mode="">
					</image>
				</view>
				<view class="xiuxi_popup_tip_text" style="margin-top: 30rpx;padding-left: 30rpx;padding-right: 30rpx;">
					您的外卖保证金余额不足，请及时缴纳，避免影响到您正常接单！</view>
				<view class="pay_popup_box">
					<view class="pay_popup_btn" hover-class="hover_class" @click="handlePayHide()">今日不再提醒</view>
					<view class="pay_popup_btn1" hover-class="hover_class" @click="goPay()">立即缴纳</view>
				</view>
			</view>

		</wyb-popup>
		<wyb-popup ref="payTipNewPopup" type="center" height="544" width='640' radius="16" :showCloseIcon="false">
			<view class="xiuxi_popup_bj">
				<view style="height: 74rpx;"></view>
				<view class="xiuxi_popup_tip_img" style="width: 144rpx;height: 144rpx;">
					<image src="https://www.cccshansong.com/chong_weapp/pay_tip_icon.png"
						mode="">
				</view>
				<view class="xiuxi_popup_tip_text" style="margin-top: 30rpx;padding-left: 30rpx;padding-right: 30rpx;">
					您的外卖保证金余额不足，请及时缴纳，避免影响到您正常接单！</view>
				<view class="pay_popup_box">
					<view class="pay_popup_btn1" hover-class="hover_class" @click="goPay()">立即缴纳</view>
				</view>
			</view>

		</wyb-popup>
		<wyb-popup ref="payTipNewStorePopup" type="center" height="600" width='640' radius="16" :showCloseIcon="false">
			<view class="xiuxi_popup_bj">
				<view style="height: 74rpx;"></view>
				<view class="xiuxi_popup_tip_img" style="width: 144rpx;height: 144rpx;">
					<image src="https://www.cccshansong.com/chong_weapp/pay_tip_icon.png"
						mode="">
				</view>
				<view class="xiuxi_popup_tip_text" style="margin-top: 30rpx;padding-left: 30rpx;padding-right: 30rpx;">
					您的帮买帮送保证金余额不足，请及时缴纳，避免影响到您正常接单！</view>
				<view class="pay_popup_box">
					<view class="pay_popup_btn1" hover-class="hover_class" @click="goPay()">立即缴纳</view>
				</view>
			</view>

		</wyb-popup>
		<wyb-popup ref="weiQuPopup" type="center" height="644" width='640' radius="16" :showCloseIcon="false">
			<view class="xiuxi_popup_bj">
				<view style="height: 74rpx;"></view>
				<view class="xiuxi_popup_tip_img" style="width: 144rpx;height: 144rpx;">
					<image src="https://www.cccshansong.com/chong_weapp/pay_tip_icon.png"
						mode="">
				</view>
				<view class="xiuxi_popup_tip_text" style="margin-top: 30rpx;padding-left: 30rpx;padding-right: 30rpx;text-align: left;">
					未抵达取货地</view>
				<view class="xiuxi_popup_tip_text" style="margin-top: 30rpx;padding-left: 30rpx;padding-right: 30rpx;text-align: left;color: rgba(36, 40, 49, 1);font-size: 30rpx;font-weight: 400;">
					检测到您当前未抵达取货地。如确认已到取货地，可点击“确认取货”。如遇到异常问题，建议联系客服上报异常后再点击“我已取货”，<text style="color: rgba(255, 107, 0, 1);">避免产生损失</text>。
				</view>
			</view>
			<view class="pay_popup_box" style="padding-top: 164rpx;">
				<view class="pay_popup_btn" hover-class="hover_class" @click="handleWeiQuHide()">取消</view>
				<view class="pay_popup_btn1" hover-class="hover_class" @click="handleWeiQuConfrim()">确认取货</view>
			</view>
		</wyb-popup>
		<wyb-popup ref="weiSongPopup" type="center" height="644" width='640' radius="16" :showCloseIcon="false">
			<view class="xiuxi_popup_bj">
				<view style="height: 74rpx;"></view>
				<view class="xiuxi_popup_tip_img" style="width: 144rpx;height: 144rpx;">
					<image src="https://www.cccshansong.com/chong_weapp/pay_tip_icon.png"
						mode="">
				</view>
				<view class="xiuxi_popup_tip_text" style="margin-top: 30rpx;padding-left: 30rpx;padding-right: 30rpx;text-align: left;">
					未抵达送货地</view>
				<view class="xiuxi_popup_tip_text" style="margin-top: 30rpx;padding-left: 30rpx;padding-right: 30rpx;text-align: left;color: rgba(36, 40, 49, 1);font-size: 30rpx;font-weight: 400;">
					检测到您当前未抵达送货地，“确认送达”可能会产生扣款，请您再次核实是否已抵达送货地。如遇到操作问题，建议您先联系客服上报异常后再点击“我已送达”。
				</view>
			</view>
			<view class="pay_popup_box" style="padding-top: 164rpx;">
				<view class="pay_popup_btn" hover-class="hover_class" @click="handleWeiSongHide()">取消</view>
				<view class="pay_popup_btn1" hover-class="hover_class" @click="handleWeiSongConfrim()">确认送达</view>
			</view>
		</wyb-popup>
		<wyb-popup ref="daodianPopup" type="center" height="574" width='640' radius="16" :maskClickClose="false" :showCloseIcon="false">
			<view class="xiuxi_popup_bj">
				<view style="height: 30rpx;"></view>
				<view class="xiuxi_popup_tip_text" style="padding-left: 30rpx;text-align: left;">
					确认已到店?
				</view>
				<view class="ask_img_box">
					<view class="ask_title">上传到店图片（选填）</view>
					<view class="img_list">
						<htz-image-upload  :max="3"  v-model="ceshiData" @imgDelete='imgDelete' @uploadSuccess="ceshiUploadSuccess" :action="action_url" ></htz-image-upload>
					</view>
				</view>
				<view class="pay_popup_box">
					<view class="pay_popup_btn" hover-class="hover_class" @click="handlePickHide()">取消</view>
					<view class="pay_popup_btn1" hover-class="hover_class" @click="handlePickConfrim()">确认到店</view>
				</view>
			</view>
		</wyb-popup>
		<wyb-popup ref="quhuoPopup" type="center" height="574" width='640' radius="16" :maskClickClose="false" :showCloseIcon="false">
			<view class="xiuxi_popup_bj">
				<view style="height: 60rpx;"></view>
				<view class="xiuxi_popup_tip_text" style="padding-left: 30rpx;text-align: left;">
					确认已取货?
				</view>
				<view class="ask_img_box">
					<view class="ask_title">上传取货图片（选填）</view>
					<view class="img_list">
						<htz-image-upload  :max="3"  v-model="ceshiData1" @imgDelete='imgDelete1' @uploadSuccess="ceshiUploadSuccess1" :action="action_url" ></htz-image-upload>
					</view>
				</view>
				<view class="pay_popup_box">
					<view class="pay_popup_btn" hover-class="hover_class" @click="handleDeliveryHide()">取消</view>
					<view class="pay_popup_btn1" hover-class="hover_class" @click="handleDeliveryConfrim()">确认取货</view>
				</view>
			</view>
		</wyb-popup>
		<wyb-popup ref="songdaPopup" type="center" height="574" width='640' radius="16" :maskClickClose="false" :showCloseIcon="false">
			<view class="xiuxi_popup_bj">
				<view style="height: 60rpx;"></view>
				<view class="xiuxi_popup_tip_text" style="padding-left: 30rpx;text-align: left;">
					确认已送达?
				</view>
				<view class="ask_img_box">
					<view class="ask_title">上传送达图片（选填）</view>
					<view class="img_list">
						<htz-image-upload  :max="3"  v-model="ceshiData2" @imgDelete='imgDelete2' @uploadSuccess="ceshiUploadSuccess2" :action="action_url" ></htz-image-upload>
					</view>
				</view>
				<view class="pay_popup_box">
					<view class="pay_popup_btn" hover-class="hover_class" @click="handleGrabDoneHide()">取消</view>
					<view class="pay_popup_btn1" hover-class="hover_class" @click="handleGrabDoneConfrim()">确认送达</view>
				</view>
			</view>
		</wyb-popup>
		<wyb-popup ref="idcardTipPopup" type="center" height="574" width='640' radius="16" :showCloseIcon="false">
			<view class="xiuxi_popup_bj">
				<view style="height: 74rpx;"></view>
				<view class="xiuxi_popup_tip_img" style="width: 144rpx;height: 144rpx;">
					<image src="https://www.cccshansong.com/chong_weapp/pay_tip_icon.png"
						mode="">
				</view>
				<view class="xiuxi_popup_tip_text" style="margin-top: 30rpx;padding-left: 30rpx;padding-right: 30rpx;">
					您还未实名认证，请及时处理，认证通过后可正常接单！</view>
				<view class="pay_popup_box">
					<view class="pay_popup_btn" hover-class="hover_class" @click="handleIdCardHide()">稍后再说</view>
					<view class="pay_popup_btn1" hover-class="hover_class" @click="goIdCard()">去实名</view>
				</view>
			</view>

		</wyb-popup>
		<wyb-popup ref="idcardExamineTipPopup" type="center" height="574" width='640' radius="16" :showCloseIcon="false">
			<view class="xiuxi_popup_bj">
				<view style="height: 74rpx;"></view>
				<view class="xiuxi_popup_tip_img" style="width: 144rpx;height: 144rpx;">
					<image src="https://www.cccshansong.com/chong_weapp/pay_tip_icon.png"
						mode="">
				</view>
				<view class="xiuxi_popup_tip_text" style="margin-top: 30rpx;padding-left: 30rpx;padding-right: 30rpx;">
					您的实名认证正在加急审核中，审核通过后可正常接单！</view>
				<view class="pay_popup_box">
					<view class="pay_popup_btn1" hover-class="hover_class" @click="handleIdCardExamineHide()">我知道了</view>
				</view>
			</view>

		</wyb-popup>
		<wyb-popup ref="idcardRejectTipPopup" type="center" height="574" width='640' radius="16" :showCloseIcon="false">
			<view class="xiuxi_popup_bj">
				<view style="height: 74rpx;"></view>
				<view class="xiuxi_popup_tip_img" style="width: 144rpx;height: 144rpx;">
					<image src="https://www.cccshansong.com/chong_weapp/pay_tip_icon.png"
						mode="">
				</view>
				<view class="xiuxi_popup_tip_text" style="margin-top: 30rpx;padding-left: 30rpx;padding-right: 30rpx;">
					您的实名认证已被驳回，请及时处理，认证通过后可正常接单！</view>
				<view class="pay_popup_box">
					<view class="pay_popup_btn" hover-class="hover_class" @click="handleIdCardRejectHide()">稍后再说</view>
					<view class="pay_popup_btn1" hover-class="hover_class" @click="goIdCardReject()">重新认证</view>
				</view>
			</view>
		</wyb-popup>
		<wyb-popup ref="tuiTipPopup" type="center" height="574" width='640' radius="16" :showCloseIcon="false">
			<view class="xiuxi_popup_bj">
				<view style="height: 74rpx;"></view>
				<view class="xiuxi_popup_tip_img" style="width: 144rpx;height: 144rpx;">
					<image src="https://www.cccshansong.com/chong_weapp/pay_tip_icon.png"
						mode="">
				</view>
				<view class="xiuxi_popup_tip_text" style="margin-top: 30rpx;padding-left: 30rpx;padding-right: 30rpx;">
					有一笔订单被取消，请及时查看！</view>
				<view class="pay_popup_box">
					<view class="pay_popup_btn" hover-class="hover_class" @click="handleTuiHide()">稍后再说</view>
					<view class="pay_popup_btn1" hover-class="hover_class" @click="goTuiDetail()">立即查看</view>
				</view>
			</view>
		</wyb-popup>
		<wyb-popup ref="setPopup" class="setPopup" type="center" height="914" width='610' radius="16" :showCloseIcon="false">
			<view class="set_popup_box">
				<view class="set_popup_btn" hover-class="hover_class" @click="goSet()">去设置</view>
				<view class="set_popup_btn1" hover-class="hover_class" @click="handleSetHide()">下次再说</view>

			</view>
		</wyb-popup>
		<wyb-popup ref="taskWeiPopup" :zIndex='170' :maskClickClose="false"  type="center" :bgColor='taskbgColor' height="824" width='606' radius="16" :showCloseIcon="false">
			<view class="task_popup_box">
<!--				<view class="task_popup_box_title">今日待完成任务</view>-->
				<view class="task_popup_box_title1">任务完成后，奖励将在0点发放</view>
				<view class="task_popup_box_content">
					<view class="index_drawer_task_tip">完成任务可得奖励</view>
					<scroll-view scroll-x="true" class="index_drawer_task_scroll">
						<view class="index_drawer_task_scroll_item" v-for="(data,index) in task_list"
							:key="index">
							<view class="index_drawer_task_scroll_item_zw">
								<view class="index_drawer_task_scroll_item_zw1"
									:style="{width:data.percent+'%'}"></view>
							</view>
							<view class="index_drawer_task_scroll_item_content">
								<view class="index_drawer_task_scroll_item_img">
									<view class="index_drawer_task_scroll_item_img_text">
										¥{{data.fee}}
									</view>
								</view>
								<view class="index_drawer_task_scroll_item_img_tip">{{data.number}}单奖励</view>
							</view>
						</view>
					</scroll-view>
				</view>
				<view class="task_popup_box_btn" @click="handleHideTaskWeiPopup()">我知道了</view>
			</view>
		</wyb-popup>
		<wyb-popup ref="taskYiPopup" :zIndex='170' :maskClickClose="false" type="center" :bgColor='taskbgColor' height="726" width='592' radius="16" :showCloseIcon="false">
			<view class="task_popup_box">
				<view class="task_popup_box_title">今日任务已完成</view>
				<view class="task_popup_box_title1">任务完成后，奖励将在0点发放</view>
				<view class="task_popup_box_content">
					<view class="index_drawer_task_tip">已完成全部任务，可得奖励</view>
					<scroll-view scroll-x="true" class="index_drawer_task_scroll">
						<view class="index_drawer_task_scroll_item" v-for="(data,index) in task_list"
							:key="index">
							<view class="index_drawer_task_scroll_item_zw">
								<view class="index_drawer_task_scroll_item_zw1"
									:style="{width:data.percent+'%'}"></view>
							</view>
							<view class="index_drawer_task_scroll_item_content">
								<view class="index_drawer_task_scroll_item_img">
									<view class="index_drawer_task_scroll_item_img_text">
										¥{{data.fee}}
									</view>
								</view>
								<view class="index_drawer_task_scroll_item_img_tip">{{data.number}}单奖励</view>
							</view>
						</view>
					</scroll-view>
				</view>
				<view class="task_popup_box_btn" @click="handleHideTaskYiPopup()"></view>
			</view>
		</wyb-popup>
		<view class="record_fix_box">
			<view class="record_fix_btn1" hover-class="hover_class" @click="handleSet()">
				<image src="../../static/images/icon10.png"
					mode="">
					<view class="record_fix_btn_text">接单设置</view>
			</view>
			<view class="record_fix_btn" hover-class="hover_class" @click="handleRefresh()">
				<image src="../../static/images/icon09.png"
					mode="">
					<view class="record_fix_btn_text">刷新列表</view>
			</view>
			<view class="chat" @click="$common.go(1,`/pages/chat/index`)">
				<image src="../../static/images/icon08.png"></image>
				<text>聊天</text>
			</view>
		</view>
		<unidrawer ref="showRight" mode="left" :mask-click="true">
			<scroll-view scroll-y="true" class="index_drawer_box" v-if="userinfo!=null">
				<view class="index_drawer_bj_box"></view>
				<view class="index_drawer_content_box">
					<view class="index_drawer_info_box">
						<view class="index_drawer_info_left" @click="goUserInfo()">
							<view class="index_drawer_info_img">
								<image
									src="https://www.cccshansong.com/chong_weapp/drawer_icon2.png"
									mode="aspectFill" v-if="userinfo.info.avatar==null"></image>
								<image :src="userinfo.info.avatar" mode="aspectFill" v-if="userinfo.info.avatar!=null"></image>
							</view>
							<view class="index_drawer_info_center">
								<view class="index_drawer_info_center_top_box">
									<view class="index_drawer_info_center_name">{{userinfo.info.name}}</view>
									<image
										src="../../static/images/icon11.png"
										mode="aspectFill"></image>
								</view>
<!--								<view class="status">新手骑士</view>-->
								<view class="index_drawer_info_center_phone" v-if="userinfo&&userinfo.info.mobile">
									{{userinfo.info.mobile.slice(0,3)}}****{{userinfo.info.mobile.slice(7,11)}}
									<view class="auth_status_box" v-if="userinfo.info.certification==1">
										实名已认证
									</view>
									<view class="auth_status_box1" v-if="userinfo.info.certification==0&&userinfo.info.id_card==null">
										请先完成实名认证
									</view>
									<view class="auth_status_box1" v-if="userinfo.info.certification==0&&userinfo.info.id_card!=null">
										实名待审核
									</view>
									<view class="auth_status_box" v-if="userinfo.info.certification==2">
										实名已驳回
									</view>
								</view>
							</view>
						</view>
						<!-- <view class="index_drawer_info_right">
							<view class="index_drawer_info_right_dian"></view>
							<image src="https://www.cccshansong.com/chong_weapp/drawer_icon1.png" mode="aspectFill"></image>
						</view> -->
					</view>
					<view class="index_drawer_count_box">
						<view class="successOrder">
							<view class="top">
								<view class="li" @click="goOrder()">
									<view class="h1">
										{{userinfo.order_number}}
									</view>
									<view class="h2">
										<text>今日订单</text>
										<image src="../../static/images/icon12.png"></image>
									</view>
								</view>
								<view class="li" @click="goWallet()">
									<view class="h1">
										{{userinfo.fee}}
									</view>
									<view class="h2">
										<text>今日收入</text>
										<image src="../../static/images/icon12.png"></image>
									</view>
								</view>
							</view>
							<view class="btm">
								<view class="li" @click="goNav(4)">
									<image src="../../static/images/icon13.png"></image>
									<text>违规申诉</text>
								</view>
								<view class="li" @click="goNav(10)">
									<image src="../../static/images/icon14.png"></image>
									<text>我的评价</text>
								</view>
							</view>
						</view>
						<!--<view class="xiuxi_popup_count_item_box" @click="goOrder()">
							<view class="xiuxi_popup_count_item_num">{{userinfo.order_number}}</view>
							<view class="xiuxi_popup_count_item_title">今日完成单<image
									src="https://www.cccshansong.com/chong_weapp/drawer_icon4.png"
									mode="aspectFill"></image>
							</view>
							<view class="xiuxi_popup_count_item_shu"></view>
						</view>
						<view class="xiuxi_popup_count_item_box" @click="goWallet()">
							<view class="xiuxi_popup_count_item_num">{{userinfo.fee}}</view>
							<view class="xiuxi_popup_count_item_title">今日配送费<image
									src="https://www.cccshansong.com/chong_weapp/drawer_icon4.png"
									mode="aspectFill"></image>
							</view>
						</view>-->
					</view>
					<view class="index_drawer_task_main">
						<view class="index_drawer_task_box">
							<view class="index_drawer_task_top_box" @click="goTask()">
								<view class="index_drawer_task_top_left_box">
									我的任务
									<!--<image
										src="https://www.cccshansong.com/chong_weapp/drawer_icon6.png"
										mode="aspectFill"></image>-->
								</view>
								<view class="index_drawer_task_top_right_box">
									全部<image
										src="../../static/images/icon12.png"
										mode="aspectFill"></image>
								</view>
							</view>
							<view class="index_drawer_task_content_box" v-if="task_list.length>0">
								<view class="index_drawer_task_tip">完成任务可得奖励</view>
								<scroll-view scroll-x="true" class="index_drawer_task_scroll">
									<view class="index_drawer_task_scroll_item" v-for="(data,index) in task_list"
										:key="index">
										<view class="index_drawer_task_scroll_item_zw">
											<view class="index_drawer_task_scroll_item_zw1"
												:style="{width:data.percent+'%'}"></view>
										</view>
										<view class="index_drawer_task_scroll_item_content">
											<view class="index_drawer_task_scroll_item_img">
												<view class="index_drawer_task_scroll_item_img_text">
													¥{{data.fee}}
												</view>
											</view>
											<view class="index_drawer_task_scroll_item_img_tip">{{data.number}}单奖励</view>
										</view>
									</view>
								</scroll-view>

							</view>

						</view>
					</view>
					<view class="indexDraweNav">
						<view class="box">
							<view class="title">工作必备</view>
							<view class="list">
								<view class="li" @click="goNav(0)">
									<image src="../../static/images/icon16.png"></image>
									<text>我的消息</text>
								</view>
								<view class="li" @click="goNav(1)">
									<image src="../../static/images/icon17.png"></image>
									<text>订单统计</text>
								</view>
								<view class="li" @click="goNav(2)">
									<image src="../../static/images/icon18.png"></image>
									<text>我的钱包</text>
								</view>
								<view class="li" @click="goNav(7)">
									<image src="../../static/images/icon19.png"></image>
									<text>保险理赔</text>
								</view>
								<view class="li" @click="goNav(8)">
									<image src="../../static/images/icon20.png"></image>
									<text>协议规则</text>
								</view>
								<view class="li" @click="$common.go(1,`/pages/user/articleDetail?id=15`)">
									<image src="../../static/images/icon21.png"></image>
									<text>培训中心</text>
								</view>
								<view class="li" @click="$common.go(1,`/pages/user/articleDetail?id=16`)">
									<image src="../../static/images/icon22.png"></image>
									<text>安全中心</text>
								</view>
							</view>
						</view>
						<view class="box">
							<view class="title">更多功能</view>
							<view class="list">
								<view class="li" @click="goNav(3)">
									<image src="../../static/images/icon23.png"></image>
									<text>招募好友入驻</text>
								</view>
								<view class="li" @click="goNav(9)">
									<image src="../../static/images/icon24.png"></image>
									<text>意见反馈</text>
<!--									<button open-type='feedback' class="index_drawer_nav_item_box_btn">意见反馈</button>-->
								</view>
								<view class="li" @click="goNav(6)">
									<image src="../../static/images/icon25.png"></image>
									<text>联系客服</text>
								</view>
								<view class="li" @click="goNav(5)">
									<image src="../../static/images/icon26.png"></image>
									<text>设置</text>
								</view>
							</view>
						</view>
					</view>
					<!--<view class="index_drawer_nav_box">
						<view class="index_drawer_nav_item_box" hover-class="hover_class" @click="goNav(0)">
							<view class="index_drawer_nav_item_left">
								<image
									src="https://www.cccshansong.com/chong_weapp/drawer_icon9.png"
									mode="aspectFill"></image> 我的消息
							</view>
							<view class="index_drawer_nav_item_right">
								<image
									src="https://www.cccshansong.com/chong_weapp/drawer_icon3.png"
									mode="aspectFill"></image>
							</view>
						</view>
						<view class="index_drawer_nav_item_box" hover-class="hover_class" @click="goNav(1)">
							<view class="index_drawer_nav_item_left">
								<image
									src="https://www.cccshansong.com/chong_weapp/drawer_icon10.png"
									mode="aspectFill"></image> 订单统计
							</view>
							<view class="index_drawer_nav_item_right">
								<image
									src="https://www.cccshansong.com/chong_weapp/drawer_icon3.png"
									mode="aspectFill"></image>
							</view>
						</view>
						<view class="index_drawer_nav_item_box" hover-class="hover_class" @click="goNav(2)">
							<view class="index_drawer_nav_item_left">
								<image
									src="https://www.cccshansong.com/chong_weapp/drawer_icon11.png"
									mode="aspectFill"></image> 我的钱包
							</view>
							<view class="index_drawer_nav_item_right">
								<image
									src="https://www.cccshansong.com/chong_weapp/drawer_icon3.png"
									mode="aspectFill"></image>
							</view>
						</view>
						<view class="index_drawer_nav_item_box" hover-class="hover_class" @click="goNav(3)">
							<view class="index_drawer_nav_item_left">
								<image
									src="https://www.cccshansong.com/chong_weapp/drawer_icon12.png"
									mode="aspectFill"></image> 招募好友入驻
							</view>
							<view class="index_drawer_nav_item_right">
								<image
									src="https://www.cccshansong.com/chong_weapp/drawer_icon3.png"
									mode="aspectFill"></image>
							</view>
						</view>
						<view class="index_drawer_nav_item_box" hover-class="hover_class" @click="goNav(4)">
							<view class="index_drawer_nav_item_left">
								<image
									src="https://www.cccshansong.com/chong_weapp/drawer_icon10.png"
									mode="aspectFill"></image> 申诉记录
							</view>
							<view class="index_drawer_nav_item_right">
								<image
									src="https://www.cccshansong.com/chong_weapp/drawer_icon3.png"
									mode="aspectFill"></image>
							</view>
						</view>
						<view class="index_drawer_nav_item_box" hover-class="hover_class" @click="goNav(7)">
							<view class="index_drawer_nav_item_left">
								<image
									src="https://www.cccshansong.com/chong_weapp/drawer_icon14_new.png"
									mode="aspectFill"></image> 保险理赔
							</view>
							<view class="index_drawer_nav_item_right">
								<image
									src="https://www.cccshansong.com/chong_weapp/drawer_icon3.png"
									mode="aspectFill"></image>
							</view>
						</view>
						<view
							style="border-bottom: 2rpx solid rgba(235, 238, 245, 1);margin-top: 20rpx;margin-bottom: 20rpx;">
						</view>
						<view class="index_drawer_nav_item_box" hover-class="hover_class" @click="goNav(5)">
							<view class="index_drawer_nav_item_left">
								<image
									src="https://www.cccshansong.com/chong_weapp/drawer_icon13.png"
									mode="aspectFill"></image> 设置
							</view>
							<view class="index_drawer_nav_item_right">
								<image
									src="https://www.cccshansong.com/chong_weapp/drawer_icon3.png"
									mode="aspectFill"></image>
							</view>
						</view>
						<view class="index_drawer_nav_item_box" hover-class="hover_class" @click="goNav(6)">
							<view class="index_drawer_nav_item_left">
								<image
									src="https://www.cccshansong.com/chong_weapp/drawer_icon14.png"
									mode="aspectFill"></image> 联系客服
							</view>
							<view class="index_drawer_nav_item_right">
								<image
									src="https://www.cccshansong.com/chong_weapp/drawer_icon3.png"
									mode="aspectFill"></image>
							</view>
						</view>
						<view class="index_drawer_nav_item_box" hover-class="hover_class">
							<view class="index_drawer_nav_item_left">
								<image
									src="https://www.cccshansong.com/chong_weapp/drawer_icon10_new.png"
									mode="aspectFill"></image> 意见反馈
							</view>
							<view class="index_drawer_nav_item_right">
								<image
									src="https://www.cccshansong.com/chong_weapp/drawer_icon3.png"
									mode="aspectFill"></image>
							</view>
							<button open-type='feedback' class="index_drawer_nav_item_box_btn">意见反馈</button>
						</view>
					</view>-->
					<!-- <view class="index_drawer_invite_box"  hover-class="hover_class">
						<image src="https://www.cccshansong.com/chong_weapp/drawer_icon15.png" mode="aspectFill"></image>
					</view> -->
					<view style="height: 80rpx;"></view>
				</view>
			</scroll-view>
		</unidrawer>
		<wyb-popup ref="kfPopup" type="center" height="364" width='640' radius="16" :zIndex='999999'  :showCloseIcon="false" >
			<view class="kfPopup_content">
				<view class="kf_btn_title">提示</view>
				<view class="kf_btn_title1">请任意选择一种方式联系客服</view>
				<view class="kf_btn_box">
					<view class="kf_btn1" @click="handleKfCall()">拨打电话</view>
					<view class="kf_btn2" @click="handleKfWx()">微信客服</view>
				</view>
			</view>
		</wyb-popup>
		<map id="myMap" style="display: none;"/>
		<yk-authpup ref="authpupLocation" type="top" :isNativeHead='false' @changeAuth="changeAuthLocation" :permissionID="permissionID"></yk-authpup>
		<yk-authpup ref="authpup" :isNativeHead='false' type="top" @changeAuth="changeAuth" :permissionID="permissionID"></yk-authpup>
		<yk-authpup ref="authpupPhone" :isNativeHead='false' type="top" @changeAuth="changeAuthPhone" :permissionID="permissionID"></yk-authpup>
		<yk-authpup ref="authpupCamera" type="top" :isNativeHead='false' @changeAuth="changeAuthCamera" :permissionID="permissionID"></yk-authpup>
		<yk-authpup ref="authpupAlbum" type="top" :isNativeHead='false' @changeAuth="changeAuthAlbum" :permissionID="permissionID"></yk-authpup>
		<yk-authpup ref="authpupCamera1" type="top" :isNativeHead='false' @changeAuth="changeAuthCamera1" :permissionID="permissionID"></yk-authpup>
		<yk-authpup ref="authpupAlbum1" type="top" :isNativeHead='false' @changeAuth="changeAuthAlbum1" :permissionID="permissionID"></yk-authpup>
		<yk-authpup ref="authpupCamera2" type="top" :isNativeHead='false' @changeAuth="changeAuthCamera2" :permissionID="permissionID"></yk-authpup>
		<yk-authpup ref="authpupAlbum2" type="top" :isNativeHead='false' @changeAuth="changeAuthAlbum2" :permissionID="permissionID"></yk-authpup>
		<yk-authpup ref="authpupPhoneKf" :isNativeHead='false' type="top" @changeAuth="changeAuthPhoneKf" :permissionID="permissionID"></yk-authpup>
	</view>
</template>

<script>
	import { startServe } from "@/uni_modules/Lin97112479-location"
	import { getLocations,clearLocationsrequestLocation,setBattery } from "@/uni_modules/Lin97112479-location/utssdk/index.js"
	import mzNetworkError from '@/components/mz-network-error/mz-network-error.vue'
	import ykAuthpup from "@/components/yk-authpup/yk-authpup";
	import htzImageUpload from '@/components/htz-image-upload/htz-image-upload1.vue'
	import unidrawer from '@/uni_modules/uni-drawer/components/uni-drawer/uni-drawer.vue'
	import wybPopup from '@/components/wyb-popup/wyb-popup.vue';
	export default {
		components: {
			mzNetworkError,
			htzImageUpload,
			wybPopup,
			unidrawer, //个人中心抽屉
			ykAuthpup
		},
		data() {
			return {
				intervalId :null,
				touch_status:true,
				taskbgColor:'rgba(255,255,255,0)',
				confrim_btn_status:true,
				select_order_id:0,
				action_url:'',
				image_arr:[],
				ceshiData:[],
				image_arr1:[],
				ceshiData1:[],
				image_arr2:[],
				ceshiData2:[],
				user_id:0,
				isRefreshEnabled1:false,
				isRefreshEnabled2:false,
				isRefreshEnabled3:false,
				no_read_num: 0,
				userinfo: null,
				socketTask: null, // WebSocket实例
				isConnected: false, // WebSocket连接状态
				task_list: [],
				_freshing1: false ,
				_freshing2: false ,
				_freshing3: false ,
				isTriggered1: false,
				isTriggered2: false,
				isTriggered3: false,
				oldScrollTop1: 0,
				oldScrollTop2: 0,
				oldScrollTop3: 0,
				scrollTop1: 0,
				scrollTop2: 0,
				scrollTop3: 0,
				notice_text: '',
				show_status_mask: false,
				user_status: 1, //1上线  0休息
				statusHeight: 0,
				rightSafeArea: 0,
				lineColor: '#fff',
				current: 0,
				TabCurrent:0,
				tabs: ['新订单','待取货', '待完成', ],
				countdown: 0,
				timer: null,
				is_location: false,
				isLogin: false,
				kf_phone: '',
				list: [],
				listJia:[],
				page: 1,
				count: 0,
				select_type: 1,
				btn_status: true,
				refuse_btn_status: true,
				work_btn_status: true,
				interval_time: null,
				is_voice:0,
				max_count_tip:'',
				onetoone_count_tip:'',
				grab_btn_status:true,
				permissionID:'',
				select_store_phone:'',
				network_status:true,
			}
		},
		onLoad() {
			var a = this
			a.statusHeight = uni.getSystemInfoSync().statusBarHeight + 10
			a.getLocationAuth();

			a.action_url = a.globalurl + 'common/image_upload'

			let isLogin = uni.getStorageSync('isLogin')

			if(isLogin){
				// a.getUserInfo()
				if (a.btn_status) {
					a.btn_status = false
					a.page = 1
					a.listJia = [];
					a.list = [];
					a.getList()
				}
			}

		},
		beforeDestroy() {
			var a = this
			// 在组件销毁前，确保关闭 WebSocket 连接
			a.closeWebSocket();
			a.interval_time = null
			clearInterval(a.timer);

		},
		onHide() {
			var a = this
			// 在组件销毁前，确保关闭 WebSocket 连接
			// a.closeWebSocket();
			// a.interval_time = null
			// clearInterval(a.timer);
			// uni.stopLocationUpdate({
			// 	success:res2=>{
			// 		console.log('停止')
			// 	}
			// })
			// uni.offLocationChange(function(res){
			// 	console.log('关闭')
			// })
		},
		onUnload() {
			var a = this
			// 在组件销毁前，确保关闭 WebSocket 连接
			// a.closeWebSocket();
			// a.interval_time = null
			// clearInterval(a.timer);
			// uni.stopLocationUpdate({
			// 	success:res2=>{
			// 		console.log('停止')
			// 	}
			// })
			// uni.offLocationChange(function(res){
			// 	console.log('关闭')
			// })
		},

		onShow() {
			var a = this
			a.listJia = [];
			// a.getLocationAuth();
			a.getConfig()
			let isLogin = uni.getStorageSync('isLogin')
			if (isLogin != '') {
				a.isLogin = isLogin
			} else {
				a.isLogin = false
			}

			a.getConfig()
			if (isLogin) {
				a.isRefreshEnabled1 = true
				a.isRefreshEnabled2 = true
				a.isRefreshEnabled3 = true
				a.getUserInfo()
				a.getNum()
				a.interval_time = null
				clearInterval(a.timer);
				a.connectWebSocket()
				a.getTask()
			}else{
				a.isRefreshEnabled1 = false
				a.isRefreshEnabled2 = false
				a.isRefreshEnabled3 = false
			}
			a.requestAndroid('android.permission.ACCESS_FINE_LOCATION')




		},
		methods: {
			coutDownChangeTwo(data){
				this.page = 1
				this.listJia = [];
				this.list = [];
				setTimeout(() => {
					this.getList()
				},100)
			},
			coutDownChange(e){
				console.log(e);
				if(e.milliseconds == 0){
					this.page = 1
					this.listJia = [];
					this.list = [];
					this.getList()
				}
			},
			getTimeDifference(expireTime){
				// 获取当前时间的时间戳
				const nowTimestamp = new Date().getTime();

				return expireTime - nowTimestamp;
			},
			toChat(item){
				console.log(item);
				uni.navigateTo({
					url:`/pages/chat/detail?id=${item.merchant.consumer_id}&shopName=${item.merchant.shop_name}`
				})
			},
			vertifyResult(vertify,id) {
				if(vertify == true){
					this.handleGrab(id)
				}
			},
			requestAndroid(permissionID) {
				var a = this
			    plus.android.requestPermissions(
			        [permissionID],
			        function(resultObj) {
			            var result = 0;
			            for (var i = 0; i < resultObj.granted.length; i++) {
			                var grantedPermission = resultObj.granted[i];
			                console.log('已获取了权限');
			                result = 1
			            }
			            for (var i = 0; i < resultObj.deniedPresent.length; i++) {
			                var deniedPresentPermission = resultObj.deniedPresent[i];
			                console.log('拒绝本次了申请的权限');
							result = 0
			            }
			            for (var i = 0; i < resultObj.deniedAlways.length; i++) {
			                var deniedAlwaysPermission = resultObj.deniedAlways[i];
			                console.log('永久拒绝了申请的权限');
			                result = -1
			            }
						console.log('获取到的权限结果',result)
						if(result==1){
							a.getLocationOnce();
						}
			        },

			    );
			},
			requestAndroidNew(permissionID) {
				var a = this
			    plus.android.requestPermissions(
			        [permissionID],
			        function(resultObj) {
			            var result = 0;
			            for (var i = 0; i < resultObj.granted.length; i++) {
			                var grantedPermission = resultObj.granted[i];
			                console.log('已获取了权限');
			                result = 1
			            }
			            for (var i = 0; i < resultObj.deniedPresent.length; i++) {
			                var deniedPresentPermission = resultObj.deniedPresent[i];
			                console.log('拒绝本次了申请的权限');
							result = 0
			            }
			            for (var i = 0; i < resultObj.deniedAlways.length; i++) {
			                var deniedAlwaysPermission = resultObj.deniedAlways[i];
			                console.log('永久拒绝了申请的权限');
			                result = -1
			            }
						console.log('获取到的权限结果',result)
						if(result==1){
							a.$refs.taskYiPopup.show();
						}
			        },

			    );
			},
			requestAndroidNew1(permissionID) {
				var a = this
			    plus.android.requestPermissions(
			        [permissionID],
			        function(resultObj) {
			            var result = 0;
			            for (var i = 0; i < resultObj.granted.length; i++) {
			                var grantedPermission = resultObj.granted[i];
			                console.log('已获取了权限');
			                result = 1
			            }
			            for (var i = 0; i < resultObj.deniedPresent.length; i++) {
			                var deniedPresentPermission = resultObj.deniedPresent[i];
			                console.log('拒绝本次了申请的权限');
							result = 0
			            }
			            for (var i = 0; i < resultObj.deniedAlways.length; i++) {
			                var deniedAlwaysPermission = resultObj.deniedAlways[i];
			                console.log('永久拒绝了申请的权限');
			                result = -1
			            }
						console.log('获取到的权限结果',result)
						if(result==1){
							a.$refs.taskWeiPopup.show();
						}
			        },

			    );
			},
			imgDelete(e){
				this.image_arr.splice(e.index, 1)
			},
			ceshiUploadSuccess(res) { //上传成功
				var _res = JSON.parse(res.data);
				console.log(_res)
				this.image_arr.push(_res.data.complete_url);
				this.ceshiData.push(_res.data.complete_url);
			},
			imgDelete1(e){
				this.image_arr1.splice(e.index, 1)
			},
			ceshiUploadSuccess1(res) { //上传成功
				var _res = JSON.parse(res.data);
				console.log(_res)
				this.image_arr1.push(_res.data.complete_url);
				this.ceshiData1.push(_res.data.complete_url);
			},
			imgDelete2(e){
				this.image_arr2.splice(e.index, 1)
			},
			ceshiUploadSuccess2(res) { //上传成功
				var _res = JSON.parse(res.data);
				console.log(_res)
				this.image_arr2.push(_res.data.complete_url);
				this.ceshiData2.push(_res.data.complete_url);
			},
			getNum() {
				var a = this
				a.globalajax('common/unRead', {}, 'GET', function(res) {
					console.log(res);
					uni.hideLoading()
					uni.stopPullDownRefresh()
					if (res.data.code == 200) {
						a.no_read_num = res.data.data
					} else {
						a.$showModal({
							title:'友情提示',
							content:res.data.msg,
							showCancel:false,
							confirmText:'我知道了',
							success: (res) => {
							}
						});
					}
				});
			},
			handleMap(address,address_text) {

				console.log(address)
				// uni.openLocation({
				// 	latitude: address.lat*1,
				// 	longitude: address.lng*1,
				// 	name:'位置',
				// 	address:address_text,
				// 	success: function(res) {},
				// 	fail(res) {
				// 		console.log(res);
				// 	}
				// });

				if (plus.runtime.isApplicationExist({ pname: 'com.autonavi.minimap', action: 'iosamap://' })) {
					let url = `amapuri://route/plan?sourceApplication=yourAppName&dlat=${Number(address.lat)}&dlon=${Number(address.lng)}&dev=0&t=3&style=0&start=&auto=1&rtdType=1&dname=${address_text}`;
					plus.runtime.openURL(url);
				}  else {
					uni.showToast({
						title: '当前未安装 高德地图 无法导航',
						icon: 'none',
						duration: 3000
					});
				}
			},
			getList(lat,lng) {
				var a = this
				a.touch_status = true
				uni.showLoading({
					title: '加载中'
				})
				console.log(1754,a.select_type)
				a.globalajax('order/orderList2', {
					page: a.page,
					per_page: 10,
					type: a.select_type,
					lat:lat ? lat : '',
					lng:lng ? lng : ''
				}, 'GET', function(res) {
					console.log(res);
					uni.hideLoading()
					uni.stopPullDownRefresh()
					a.isTriggered1 = false
					a.isTriggered2 = false
					a.isTriggered3 = false
					a._freshing1 = false;
					a._freshing2 = false;
					a._freshing3 = false;
					setTimeout(() => {
						a.btn_status = true
					}, 1500)
					setTimeout(() => {
						a.touch_status = false
					}, 1000)
					if (res.data.code == 200) {
						var arr = res.data.data.list
						for (var i = 0; i < arr.length; i++) {
							arr[i].price_complete = JSON.parse(arr[i].price)
							arr[i].receiver_address_detail_complete = JSON.parse(arr[i].receiver_address_detail)
							arr[i].sender_address_detail_complete = JSON.parse(arr[i].sender_address_detail)
						}
						a.listJia = a.listJia.concat(arr);
						a.list = a.listJia
						a.list = a.list.filter((item, index, self) => {
							return self.findIndex(i => i.id === item.id) === index;
						});
						a.count = res.data.data.total
						console.log(a.list);
						// if(a.select_type==1){
						// 	a.current = 0
						// }else if(a.select_type==2){
						// 	a.current = 1
						// }else if(a.select_type==3){
						// 	a.current = 2
						// }
					} else {
						a.$showModal({
							title:'友情提示',
							content:res.data.msg,
							showCancel:false,
							confirmText:'我知道了',
							success: (res) => {
							}
						});
					}
				});
			},
			handleWeiSongHide(){
				var a = this
				a.$refs.weiSongPopup.hide();
			},
			handleWeiSongConfrim(){
				var a = this
				a.$refs.weiSongPopup.hide();
				setTimeout(()=>{
					a.$refs.songdaPopup.show();
				},300)
			},
			handleWeiQuHide(){
				var a = this
				a.$refs.weiQuPopup.hide();
			},
			handleWeiQuConfrim(){
				var a = this
				a.$refs.weiQuPopup.hide();
				setTimeout(()=>{
					a.$refs.quhuoPopup.show();
				},300)
			},
			getConfig() {
				var a = this
				a.globalajax('common/getConfig', {
					value: 'mobile'
				}, 'GET', function(res) {
					console.log(res);
					uni.hideLoading()
					uni.stopPullDownRefresh()
					if (res.data.code == 200) {
						// a.kf_phone = res.data.data.mobile
						a.kf_phone = res.data.data
					} else {
						a.$showModal({
							title:'友情提示',
							content:res.data.msg,
							showCancel:false,
							confirmText:'我知道了',
							success: (res) => {
							}
						});
					}
				});
			},
			getUserInfo() {
				var a = this
				a.globalajax('user/info', {}, 'GET', function(res) {
					console.log(res);
					uni.hideLoading()
					uni.stopPullDownRefresh()
					if (res.data.code == 200) {
						if(res.data.data.info.status==0){
							// 账号被拉黑   清除token
							uni.clearStorageSync()
							uni.reLaunch({
							  url: '/pages/index/login'
							})
						}else{
							a.userinfo = res.data.data
							a.user_status = res.data.data.info.is_work
							a.is_voice = res.data.data.info.is_voice
							a.user_id = res.data.data.info.id



							if (a.userinfo.info.certification==0&&a.userinfo.info.id_card == null) {
								// 未实名
								a.$refs.idcardTipPopup.show();
							}else if(a.userinfo.info.certification==0&&a.userinfo.info.id_card != null){
								// 实名审核中
								a.$refs.idcardExamineTipPopup.show();
							}else if(a.userinfo.info.certification==2){
								// 实名被驳回
								a.$refs.idcardRejectTipPopup.show();
							}else if(a.userinfo.info.certification==1){
								// 实名已通过

								// 已实名判断是否显示保证金不足弹窗
								var temp_delivery_reminder = a.userinfo.delivery_reminder * 1
								var temp_deposit = a.userinfo.info.deposit * 1
								if (temp_deposit < temp_delivery_reminder) {
									const today = new Date().toISOString().split('T')[0]; // 获取今天的日期，格式为 YYYY-MM-DD
									const lastShownDate = uni.getStorageSync('modalLastShownDate');
									if (lastShownDate !== today) {
									   a.$refs.payTipPopup.show(); // 显示弹窗
									}

								} else {
									// 判断 是否有定位权限
									// wx.getSetting({
									// 	success: res => {
									// 		let authSetting = res.authSetting
									// 		if (authSetting['scope.userLocation']) {
									// 			console.log('用户授权了')
									// 		}else{
									// 			uni.showToast({
									// 				title:'定位未开启',
									// 				icon:'none'
									// 			})
									// 			console.log('用户拒绝了授权')
									// 			a.$refs.setPopup.show();
									// 		}
									// 	}
									// });
								}
							}
						}
					} else {
						a.$showModal({
							title:'友情提示',
							content:res.data.msg,
							showCancel:false,
							confirmText:'我知道了',
							success: (res) => {
							}
						});
					}
				});
			},
			closeWebSocket() {
				if (this.socketTask) {
					uni.closeSocket();
					this.socketTask = null;
					this.isConnected = false;
				}
			},
			connectWebSocket() {
				var a = this
				if (!a.isConnected) {
					a.socketTask = uni.connectSocket({
						// url: 'wss://ccc.healthspringny.com/wss'
						url: 'wss://www.cccshansong.com/wss'
					});
					uni.onSocketOpen(res => {
						console.log('WebSocket连接已打开！');
						this.isConnected = true;

						uni.sendSocketMessage({
							data: JSON.stringify({
							        user_id: a.user_id,
							        token: uni.getStorageSync('token')
							}),  // 发送的消息内容
							success(res) {
								console.log('数据发送成功',a.user_id, res)
							},
							fail: (error) => {
								console.log('数据发送失败', error)
							}
						});
						a.interval_time = setInterval(() => {
							uni.sendSocketMessage({
								data: JSON.stringify({
								        user_id: a.user_id,
								        token: uni.getStorageSync('token')
								}),  // 发送的消息内容
								success(res) {
									console.log('数据发送成功',a.user_id, res)
								},
								fail: (error) => {
									console.log('数据发送失败', error)
								}
							});
						}, 15000)


					});
					uni.onSocketMessage(res => {

						console.log('收到WebSocket服务器消息：', res.data);
						if (res.data.indexOf("code") !== -1) {
							var temp_data = JSON.parse(res.data)
							console.log('转换完之后的', temp_data)
							if (temp_data.message == 'new') {
								if(a.is_voice==1){
									a.onPlayAudio(1)
								}

								a.$refs.notify.show({
									top: 100,
									type: 'success',
									color: '#fff',
									bgColor: '#418AFF',
									message: '来新订单啦  快来抢单吧',
									duration: 1000 * 3,
									fontSize: '30rpx',
									safeAreaInsetTop: false
								})
								if(a.current == 0){
									console.log('来新订单刷新了')
									a.scrollTop1 = a.oldScrollTop1
									a.select_type = 1
									a.page = 1
									a.listJia = []
									this.$nextTick(() => {
										a.scrollTop1 = 0
										a.getList()
									});
								}
								this.getLocationNew();
							} else if (temp_data.message == 'remind') {
								if(a.is_voice==1){
									a.onPlayAudio(3)
								}
								a.$refs.notify.show({
									top: 100,
									type: 'success',
									color: '#fff',
									bgColor: '#418AFF',
									message: '平台给您派单了  请注意查看',
									duration: 1000 * 3,
									fontSize: '30rpx',
									safeAreaInsetTop: false
								})
								setTimeout(()=>{
									uni.stopLocationUpdate({
										success:res2=>{
											console.log('停止')
										}
									})
									uni.offLocationChange(function(res){
										console.log('关闭')
									})
									uni.navigateTo({
										url: '/pages/index/dispatch_new?id=' + temp_data.datas.id
									})
								},1000)
							} else if (temp_data.message == 'cancel') {
								if(a.is_voice==1){
									a.onPlayAudio(2)
								}
								a.$refs.notify.show({
									top: 100,
									type: 'success',
									color: '#fff',
									bgColor: '#418AFF',
									message: '用户取消订单了  请注意查看',
									duration: 1000 * 3,
									fontSize: '30rpx',
									safeAreaInsetTop: false
								})
								setTimeout(()=>{
									uni.stopLocationUpdate({
										success:res2=>{
											console.log('停止')
										}
									})
									uni.offLocationChange(function(res){
										console.log('关闭')
									})
									uni.navigateTo({
										url: '/pages/index/orderDetail?id=' + temp_data.datas.id
									})
								},1000)
							}else if (temp_data.message == 'timeout') {
								if(a.is_voice==1){
									a.onPlayAudio(13)
								}
								a.$refs.notify.show({
									top: 100,
									type: 'success',
									color: '#fff',
									bgColor: '#418AFF',
									message: '您有一笔订单快超时了  请注意查看',
									duration: 1000 * 3,
									fontSize: '30rpx',
									safeAreaInsetTop: false
								})
								setTimeout(()=>{
									uni.stopLocationUpdate({
										success:res2=>{
											console.log('停止')
										}
									})
									uni.offLocationChange(function(res){
										console.log('关闭')
									})
									uni.navigateTo({
										url: '/pages/index/orderDetail?id=' + temp_data.datas.id
									})
								},1000)
							}else if (temp_data.message == 'shortDispatch') {
								if(a.is_voice==1){
									a.onPlayAudio(3)
								}
								a.$refs.notify.show({
									top: 100,
									type: 'success',
									color: '#fff',
									bgColor: '#418AFF',
									message: '您有一笔近单优派订单 快来抢单吧',
									duration: 1000 * 3,
									fontSize: '30rpx',
									safeAreaInsetTop: false
								})
								setTimeout(()=>{
									uni.stopLocationUpdate({
										success:res2=>{
											console.log('停止')
										}
									})
									uni.offLocationChange(function(res){
										console.log('关闭')
									})
									uni.navigateTo({
										url: '/pages/index/dispatch_new?id=' + temp_data.datas.id
									})
								},1000);
							}else if (temp_data.message == 'chat') {
								if(a.is_voice==1){
									a.onPlayAudio(13)
								}
								a.$refs.notify.show({
									top: 100,
									type: 'success',
									color: '#fff',
									bgColor: '#418AFF',
									message: '您有一条新的消息  请注意查看',
									duration: 1000 * 3,
									fontSize: '30rpx',
									safeAreaInsetTop: false
								})
								setTimeout(()=>{
									uni.stopLocationUpdate({
										success:res2=>{
											console.log('停止')
										}
									})
									uni.offLocationChange(function(res){
										console.log('关闭')
									})
									uni.navigateTo({
										url: '/pages/chat/index'
									})
								},1000)
							}

							console.log('转换完之后的msg', temp_data.message)
							uni.setStorageSync('socket', temp_data)
						}
					});
					uni.onSocketClose(res => {
						console.log('WebSocket连接已关闭！');
						a.interval_time = null
						clearInterval(a.timer);
						this.isConnected = false;
					});

					uni.onSocketError(err => {
						console.error('WebSocket连接打开失败，请检查：', err);
						uni.closeSocket();
						a.socketTask = null;
						a.isConnected = false
						setTimeout(() => {
							a.connectWebSocket()
						}, 3000)
					});




				}
			},
			handleDetail(id) {
				uni.stopLocationUpdate({
					success:res2=>{
						console.log('停止')
					}
				})
				uni.offLocationChange(function(res){
					console.log('关闭')
				})
				uni.navigateTo({
					url: '/pages/index/orderDetail?id=' + id
				})
			},
			goNav(index) {
				var a = this
				a.show_status_mask = false
				a.$refs.showRight.close();
				if (index == 0) {
					uni.stopLocationUpdate({
						success:res2=>{
							console.log('停止')
						}
					})
					uni.offLocationChange(function(res){
						console.log('关闭')
					})
					uni.navigateTo({
						url: '/pages/user/noticeList'
					})
				} else if (index == 1) {
					uni.stopLocationUpdate({
						success:res2=>{
							console.log('停止')
						}
					})
					uni.offLocationChange(function(res){
						console.log('关闭')
					})
					uni.navigateTo({
						url: '/pages/user/orderStatistics'
					})
				} else if (index == 2) {
					uni.stopLocationUpdate({
						success:res2=>{
							console.log('停止')
						}
					})
					uni.offLocationChange(function(res){
						console.log('关闭')
					})
					uni.navigateTo({
						url: '/pages/user/userWallet'
					})
				} else if (index == 3) {
					uni.stopLocationUpdate({
						success:res2=>{
							console.log('停止')
						}
					})
					uni.offLocationChange(function(res){
						console.log('关闭')
					})
					uni.navigateTo({
						url: '/pages/user/inviteList'
					})
				} else if (index == 4) {
					uni.stopLocationUpdate({
						success:res2=>{
							console.log('停止')
						}
					})
					uni.offLocationChange(function(res){
						console.log('关闭')
					})
					uni.navigateTo({
						url: '/pages/user/appealList'
					})
				} else if (index == 5) {
					uni.stopLocationUpdate({
						success:res2=>{
							console.log('停止')
						}
					})
					uni.offLocationChange(function(res){
						console.log('关闭')
					})
					uni.navigateTo({
						url: '/pages/user/set'
					})
				} else if (index == 6) {
					// a.openAuthPhoneKf('CALL_PHONE')
					a.$refs.kfPopup.show();
				} else if (index == 7) {
					uni.stopLocationUpdate({
						success:res2=>{
							console.log('停止')
						}
					})
					uni.offLocationChange(function(res){
						console.log('关闭')
					})
					uni.navigateTo({
						url: '/pages/index/insure'
					})
				}  else if (index == 8) {
					uni.stopLocationUpdate({
						success:res2=>{
							console.log('停止')
						}
					})
					uni.offLocationChange(function(res){
						console.log('关闭')
					})
					uni.navigateTo({
						url: '/pages/user/rule'
					})
				}  else if (index == 9) {
					uni.stopLocationUpdate({
						success:res2=>{
							console.log('停止')
						}
					})
					uni.offLocationChange(function(res){
						console.log('关闭')
					})
					uni.navigateTo({
						url: '/pages/user/feedback'
					})
				}  else if (index == 10) {
					uni.stopLocationUpdate({
						success:res2=>{
							console.log('停止')
						}
					})
					uni.offLocationChange(function(res){
						console.log('关闭')
					})
					uni.navigateTo({
						url: '/pages/user/myEval'
					})
				}
			},
			//打开自定义权限目的弹框
			openAuthPhoneKf(permissionID){
				this.permissionID = permissionID;//这个是对应的权限 ACCESS_FINE_LOCATION 位置权限 / WRITE_EXTERNAL_STORAGE 存储空间/照片权限 / CAMERA相机权限 / CALL_PHONE 拨打电话
				setTimeout(()=>{
					this.$refs['authpupPhoneKf'].open();
				},500)
			},
			changeAuthPhoneKf(){
				var a = this
				//这里是权限通过后执行自己的代码逻辑
				console.log('拨打电话权限已授权，可执行自己的代码逻辑了');
				var temp_str = '呼叫'+ a.kf_phone
				uni.showActionSheet({
					itemList: [temp_str],
					success: function(res) {
						console.log(res);
						if (res.tapIndex == 0) {
							uni.makePhoneCall({
								phoneNumber: a.kf_phone,
								success: (res) => {
									console.log('调用成功!')
								},
							})
						}
					}
				})
			},
			handleGrabDoneHide(){
				var a = this
				a.$refs.songdaPopup.hide();
				a.image_arr2 = []
				a.ceshiData2 = []
			},
			handleGrabDoneConfrim(){
				var a = this
				if(a.confrim_btn_status){
					var temp_str = ''
					if(a.image_arr2.length>0){
						temp_str = JSON.stringify(a.image_arr2)
					}
					a.confrim_btn_status = false
					uni.showLoading({
						title: '加载中'
					})
					a.globalajax('order/done', {
						id: a.select_order_id,
						image:temp_str
					}, 'GET', function(res) {
						console.log(res);
						uni.hideLoading()
						uni.stopPullDownRefresh()
						a.$refs.songdaPopup.hide();
						setTimeout(()=>{
							a.confrim_btn_status = true
						},1500)
						if (res.data.code == 200) {
							a.image_arr2 = []
							a.ceshiData2 = []
							a.onPlayAudio(14)
							uni.showToast({
								title: '操作成功',
								icon: 'none'
							})
							a.page = 1
							a.listJia = []
							setTimeout(() => {
								a.getList()
							}, 300)
						} else {
							a.$showModal({
								title:'友情提示',
								content:res.data.msg,
								showCancel:false,
								confirmText:'我知道了',
								success: (res) => {
								}
							});
						}
					});
				}
			},
			handleGrabDone(id) {
				var a = this
				a.select_order_id = id
				a.openAuthCamera2('CAMERA')
			},
			//打开自定义权限目的弹框
			openAuthCamera2(permissionID){
				this.permissionID = permissionID;//这个是对应的权限 ACCESS_FINE_LOCATION 位置权限 / WRITE_EXTERNAL_STORAGE 存储空间/照片权限 / CAMERA相机权限 / CALL_PHONE 拨打电话
				setTimeout(()=>{
					this.$refs['authpupCamera2'].open();
				},500)
			},
			openAuthAlbum2(permissionID){
				this.permissionID = permissionID;//这个是对应的权限 ACCESS_FINE_LOCATION 位置权限 / WRITE_EXTERNAL_STORAGE 存储空间/照片权限 / CAMERA相机权限 / CALL_PHONE 拨打电话
				setTimeout(()=>{
					this.$refs['authpupAlbum2'].open();
				},500)
			},
			//用户授权权限后的回调
			changeAuthCamera2(){
				//这里是权限通过后执行自己的代码逻辑
				console.log('拍照权限已授权，可执行自己的代码逻辑了');
				this.openAuthAlbum2('WRITE_EXTERNAL_STORAGE')
			},
			changeAuthAlbum2(){
				//这里是权限通过后执行自己的代码逻辑
				console.log('相册权限已授权，可执行自己的代码逻辑了');
				this.$refs.songdaPopup.show();
			},
			handleDeliveryHide(){
				var a = this
				a.$refs.quhuoPopup.hide();
				a.image_arr1 = []
				a.ceshiData1 = []
			},
			handleDeliveryConfrim(){
				var a = this
				if(a.confrim_btn_status){
					var temp_str = ''
					if(a.image_arr1.length>0){
						temp_str = JSON.stringify(a.image_arr1)
					}
					a.confrim_btn_status = false
					uni.showLoading({
						title: '加载中'
					})
					a.globalajax('order/deliveryOrder', {
						id: a.select_order_id,
						delivery_image:temp_str
					}, 'GET', function(res) {
						console.log(res);
						uni.hideLoading()
						uni.stopPullDownRefresh()
						a.$refs.quhuoPopup.hide();
						setTimeout(()=>{
							a.confrim_btn_status = true
						},1500)
						if (res.data.code == 200) {
							a.image_arr1 = []
							a.ceshiData1 = []
							a.onPlayAudio(12)
							uni.showToast({
								title: '操作成功',
								icon: 'none'
							})
							a.page = 1
							a.listJia = []
							setTimeout(() => {
								a.getList()
							}, 300)
						} else {
							a.$showModal({
								title:'友情提示',
								content:res.data.msg,
								showCancel:false,
								confirmText:'我知道了',
								success: (res) => {
								}
							});
						}
					});
				}
			},
			handleDelivery(id) {
				var a = this
				a.select_order_id = id
				a.openAuthCamera1('CAMERA')
			},
			//打开自定义权限目的弹框
			openAuthCamera1(permissionID){
				this.permissionID = permissionID;//这个是对应的权限 ACCESS_FINE_LOCATION 位置权限 / WRITE_EXTERNAL_STORAGE 存储空间/照片权限 / CAMERA相机权限 / CALL_PHONE 拨打电话
				setTimeout(()=>{
					this.$refs['authpupCamera1'].open();
				},500)
			},
			openAuthAlbum1(permissionID){
				this.permissionID = permissionID;//这个是对应的权限 ACCESS_FINE_LOCATION 位置权限 / WRITE_EXTERNAL_STORAGE 存储空间/照片权限 / CAMERA相机权限 / CALL_PHONE 拨打电话
				setTimeout(()=>{
					this.$refs['authpupAlbum1'].open();
				},500)
			},
			//用户授权权限后的回调
			changeAuthCamera1(){
				//这里是权限通过后执行自己的代码逻辑
				console.log('拍照权限已授权，可执行自己的代码逻辑了');
				this.openAuthAlbum1('WRITE_EXTERNAL_STORAGE')
			},
			changeAuthAlbum1(){
				//这里是权限通过后执行自己的代码逻辑
				console.log('相册权限已授权，可执行自己的代码逻辑了');
				this.$refs.quhuoPopup.show();
			},
			handlePickHide(){
				var a = this
				a.$refs.daodianPopup.hide();
				a.image_arr = []
				a.ceshiData = []
			},
			handlePickConfrim(){
				var a = this
				if(a.confrim_btn_status){
					var temp_str = ''
					if(a.image_arr.length>0){
						temp_str = JSON.stringify(a.image_arr)
					}
					a.confrim_btn_status = false
					uni.showLoading({
						title: '加载中'
					})
					a.globalajax('order/pickOrder', {
						id: a.select_order_id,
						pick_image:temp_str
					}, 'GET', function(res) {
						console.log(res);
						uni.hideLoading()
						uni.stopPullDownRefresh()
						a.$refs.daodianPopup.hide();
						setTimeout(()=>{
							a.confrim_btn_status = true
						},1500)
						if (res.data.code == 200) {
							a.image_arr = []
							a.ceshiData = []
							a.onPlayAudio(11)
							uni.showToast({
								title: '操作成功',
								icon: 'none'
							})
							a.page = 1
							a.listJia = []
							setTimeout(() => {
								a.getList()
							}, 300)
						} else {
							a.$showModal({
								title:'友情提示',
								content:res.data.msg,
								showCancel:false,
								confirmText:'我知道了',
								success: (res) => {
								}
							});
						}
					});
				}
			},
			handlePick(id) {
				var a = this
				a.select_order_id = id
				a.openAuthCamera('CAMERA')
			},
			//打开自定义权限目的弹框
			openAuthCamera(permissionID){
				this.permissionID = permissionID;//这个是对应的权限 ACCESS_FINE_LOCATION 位置权限 / WRITE_EXTERNAL_STORAGE 存储空间/照片权限 / CAMERA相机权限 / CALL_PHONE 拨打电话
				setTimeout(()=>{
					this.$refs['authpupCamera'].open();
				},500)
			},
			openAuthAlbum(permissionID){
				this.permissionID = permissionID;//这个是对应的权限 ACCESS_FINE_LOCATION 位置权限 / WRITE_EXTERNAL_STORAGE 存储空间/照片权限 / CAMERA相机权限 / CALL_PHONE 拨打电话
				setTimeout(()=>{
					this.$refs['authpupAlbum'].open();
				},500)
			},
			//用户授权权限后的回调
			changeAuthCamera(){
				//这里是权限通过后执行自己的代码逻辑
				console.log('拍照权限已授权，可执行自己的代码逻辑了');
				this.openAuthAlbum('WRITE_EXTERNAL_STORAGE')
			},
			changeAuthAlbum(){
				//这里是权限通过后执行自己的代码逻辑
				console.log('相册权限已授权，可执行自己的代码逻辑了');
				this.$refs.daodianPopup.show();
			},
			handleCallStore(phone) {
				var a = this
				a.openAuthPhone('CALL_PHONE')
				if (phone.includes('_')) {
				    phone = phone.split('_')[0] + ',' + phone.split('_')[1]; // 使用 split 方法
				}
				a.select_store_phone = phone
			},
			//打开自定义权限目的弹框
			openAuthPhone(permissionID){
				this.permissionID = permissionID;//这个是对应的权限 ACCESS_FINE_LOCATION 位置权限 / WRITE_EXTERNAL_STORAGE 存储空间/照片权限 / CAMERA相机权限 / CALL_PHONE 拨打电话
				setTimeout(()=>{
					this.$refs['authpupPhone'].open();
				},500)
			},
			changeAuthPhone(){
				var a = this
				//这里是权限通过后执行自己的代码逻辑
				console.log('拨打电话权限已授权，可执行自己的代码逻辑了');
				var temp_str = '呼叫'+ a.select_store_phone
				uni.showActionSheet({
					itemList: [temp_str],
					success: function(res) {
						console.log(res);
						if (res.tapIndex == 0) {
							uni.makePhoneCall({
								phoneNumber: a.select_store_phone,
								success: (res) => {
									console.log('调用成功!')
								},
							})
						}
					}
				})
			},
			goNotice() {
				this.show_status_mask = false
				var a = this
				if (a.isLogin) {
					uni.stopLocationUpdate({
						success:res2=>{
							console.log('停止')
						}
					})
					uni.offLocationChange(function(res){
						console.log('关闭')
					})
					uni.navigateTo({
						url: '/pages/user/noticeList'
					})
				} else {
					a.$showModal({
						title:'提示',
						content:'你当前未登录，登录后可操作',
						showCancel:true,
						confirmText:'去登录',
						confirmStyle: {
							color: '#418AFF'
						},
						success: (res) => {
							if(res.confirm){
								uni.navigateTo({
									url: '/pages/user/login'
								})
							}
						}
					});
				}
			},
			goOrder() {
				this.show_status_mask = false
				this.$refs.showRight.close();
				uni.stopLocationUpdate({
					success:res2=>{
						console.log('停止')
					}
				})
				uni.offLocationChange(function(res){
					console.log('关闭')
				})
				uni.navigateTo({
					url: '/pages/user/orderStatistics'
				})
			},
			goTask() {
				this.show_status_mask = false
				this.$refs.showRight.close();
				uni.stopLocationUpdate({
					success:res2=>{
						console.log('停止')
					}
				})
				uni.offLocationChange(function(res){
					console.log('关闭')
				})
				uni.navigateTo({
					url: '/pages/user/userTask'
				})
			},
			goWallet() {
				this.show_status_mask = false
				this.$refs.showRight.close();
				uni.stopLocationUpdate({
					success:res2=>{
						console.log('停止')
					}
				})
				uni.offLocationChange(function(res){
					console.log('关闭')
				})
				uni.navigateTo({
					url: '/pages/user/userWallet'
				})
			},
			getTask() {
				var a = this
				a.globalajax('user/task', {}, 'GET', function(res) {
					console.log(res);
					uni.hideLoading()
					if (res.data.code == 200) {
						var arr = res.data.data.task_list
						for (var i = 0; i < arr.length; i++) {
							arr[i].percent = 0
							arr[i].number = Number(arr[i].number)
						}
						var count = res.data.data.count



						// 获取上一个 number 的值
						var previousNumber = 0;

						// 遍历 arr 数组
						for (var i = 0; i < arr.length; i++) {
						    var currentNumber = parseInt(arr[i].number);

						    // 如果 count 大于等于当前 item 的 number
						    if (count >= currentNumber) {
						        arr[i].percent = 100;
						    }
						    // 如果 count 小于当前 item 的 number
						    else if (count < currentNumber) {
						        // 检查 count 是否在 previousNumber 和 currentNumber 之间
						        if (count > previousNumber) {
						            arr[i].percent = Math.round((count - previousNumber) / (currentNumber - previousNumber) * 100);
						        }
						        // 在找到合适的 percent 后，后续项全设置为 0
						        for (var j = i + 1; j < arr.length; j++) {
						            arr[j].percent = 0;
						        }
						        break; // 找到位置后可以退出循环
						    }

						    // 更新 previousNumber 为当前的 number
						    previousNumber = currentNumber;
						}



						console.log('arr',arr)
						a.task_list = arr
						var temp_notice = ''
						for (var i = 0; i < arr.length; i++) {
							if (i < 3) {
								temp_notice += '完成' + arr[i].number + '单，可得' + arr[i].fee + '元奖励；'
							}
						}
						temp_notice = temp_notice + '最高可得' + arr[arr.length - 1].fee + '元奖励！'
						console.log(temp_notice)
						a.notice_text = temp_notice
						console.log(arr)
						var count1 = arr[arr.length - 1].number
						const today = new Date().toISOString().split('T')[0]; // 获取今天的日期，格式为 YYYY-MM-DD

						if (a.userinfo.info.certification==0&&a.userinfo.info.id_card == null) {
							// 未实名
							a.$refs.idcardTipPopup.show();
						}else if(a.userinfo.info.certification==0&&a.userinfo.info.id_card != null){
							// 实名审核中
							a.$refs.idcardExamineTipPopup.show();
						}else if(a.userinfo.info.certification==2){
							// 实名被驳回
							a.$refs.idcardRejectTipPopup.show();
						}else if(a.userinfo.info.certification==1){
							// 实名已通过
							if(count<count1){
								const lastShownDate = uni.getStorageSync('taskModalLastShownDate');
								if (lastShownDate !== today) {
									a.requestAndroidNew1('android.permission.ACCESS_FINE_LOCATION')
								   // a.$refs.taskWeiPopup.show(); // 显示弹窗
								}
							}
							if(count>=count1){
								const lastShownDate1 = uni.getStorageSync('taskYiModalLastShownDate');
								if (lastShownDate1 !== today) {
									a.requestAndroidNew('android.permission.ACCESS_FINE_LOCATION')
								   // a.$refs.taskYiPopup.show(); // 显示弹窗
								}
							}
						}
					} else {
						a.$showModal({
							title:'友情提示',
							content:res.data.msg,
							showCancel:false,
							confirmText:'我知道了',
							success: (res) => {
							}
						});
					}
				});
			},
			getLocationNew(){
				var a = this
				uni.startLocationUpdateBackground({
					type: 'gcj02',
					success: () => {
						a.is_location = true
						uni.startLocationUpdate({
							type: 'gcj02',
							success: () => {
								const _locationChangeFn = function(res) {
									uni.setStorage({
										key: 'mylocation',
										data: res
									})
									// console.log(res)
									if (a.isLogin) {
										a.sendLocation(res.latitude, res.longitude)
									}
								}
								let lastLocation = null;
								uni.onLocationChange((res) => {
									const currentLocation = `${res.latitude},${res.longitude}`;
									// 如果当前位置与上一个位置相同，则不处理
									if (currentLocation === lastLocation) {
									    return;
									}
									lastLocation = currentLocation;
									// 处理位置变化
									 _locationChangeFn(res);
									console.log('位置发生变化:', res);
								});
								// uni.onLocationChange(_locationChangeFn)
							}
						})
					},
					fail: (err) => {
						a.is_location = false
						console.log('startLocationUpdateBackground', JSON.stringify(err))
					}
				})
			},
			getLocationAuth(){
				this.openAuthLocation('ACCESS_FINE_LOCATION')
			},
			openAuthLocation(permissionID){
				this.permissionID = permissionID;//这个是对应的权限 ACCESS_FINE_LOCATION 位置权限 / WRITE_EXTERNAL_STORAGE 存储空间/照片权限 / CAMERA相机权限 / CALL_PHONE 拨打电话
				setTimeout(()=>{
					this.$refs['authpupLocation'].open();
				},500)
			},
			changeAuthLocation(){
				//这里是权限通过后执行自己的代码逻辑
				console.log('----------定位权限已授权，可执行自己的代码逻辑了');
				var a = this
				a.getLocation()
			},
			getLocationOnce(){
				let a = this;
				console.log('执行了')
				uni.getLocation({
					type: 'gcj02',
					geocode: true,
					isHighAccuracy:true,
					success: (res111) => {
						uni.hideLoading()
						console.log('获取到位置了',res111)
						if (a.isLogin) {
							a.sendLocation(res111.latitude, res111.longitude)
						}
					},
					fail: function(res111) {
						uni.hideLoading()
						console.log('没有获取到位置',res111)
					}
				})
			},
			getLocation() {
				let that = this;
				setBattery()
				startServe()
				const _locationChangeFn = function(res) {
					uni.setStorage({
						key: 'mylocation',
						data: res
					})
					if (that.isLogin) {
						that.sendLocation(res.latitude, res.longitude)
					}
				}

				let a = function(){
				    console.log('发送请求');
				    console.log(uni.getStorageSync('LIn97112479'));
					var temp_data_new = JSON.parse(uni.getStorageSync('LIn97112479'))
					const currentLocation = {
					    latitude: temp_data_new.coords.latitude,
					    longitude: temp_data_new.coords.longitude
					};
					 _locationChangeFn(currentLocation);

				}
				 let b = function(err){
				    console.log('报错提醒',err);
					// a.$showModal({
					// 	title:'友情提示',
					// 	content:JSON.stringify(err),
					// 	showCancel:false,
					// 	confirmText:'我知道了',
					// 	success: (res) => {
					// 	}
					// });
				}
				getLocations({provider:"amap",geocode:true,fun:a,err:b,time:50000})
				// https://ext.dcloud.net.cn/plugin?id=18448   插件地址
			},
			getLocationChange() {
				let a = this;
				console.log('执行这里了')
				uni.getLocation({
					type: 'gcj02',
					geocode: true,
					isHighAccuracy:true,
					success: (res111) => {
						uni.hideLoading()
						console.log('刷新位置了',res111)
						if (a.isLogin) {
							a.sendLocation(res111.latitude, res111.longitude)
						}
					},
					fail: function(res111) {
						uni.hideLoading()
						console.log('没有获取到位置',res111)
					}
				})

			},
			//获取经纬度
			getLocation1() {
				let a = this;
				console.log('执行了')
				uni.getLocation({
					type: 'gcj02',
					geocode: true,
					isHighAccuracy:true,
					success: (res111) => {
						uni.hideLoading()
						console.log('获取到位置了',res111)
						if (a.isLogin) {
							a.sendLocation(res111.latitude, res111.longitude)
						}
					},
					fail: function(res111) {
						uni.hideLoading()
						console.log('没有获取到位置',res111)
					}
				})
				uni.startLocationUpdate({
					type: 'gcj02',
					success: (ressss) => {
						console.log('执行了1',ressss)
						a.is_location = true
						const _locationChangeFn = function(res) {
							uni.setStorage({
								key: 'mylocation',
								data: res
							})
							console.log('获取到位置',res)
							if (a.isLogin) {
								a.sendLocation(res.latitude, res.longitude)
							}
						}
						// 计算两点之间的距离（单位：米）
						function getDistance(lat1, lon1, lat2, lon2) {
						    const R = 6371000; // 地球半径，单位为米
						    const toRadians = (degrees) => degrees * (Math.PI / 180);

						    const dLat = toRadians(lat2 - lat1);
						    const dLon = toRadians(lon2 - lon1);

						    const a = Math.sin(dLat / 2) * Math.sin(dLat / 2) +
						              Math.cos(toRadians(lat1)) * Math.cos(toRadians(lat2)) *
						              Math.sin(dLon / 2) * Math.sin(dLon / 2);

						    const c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));

						    return R * c; // 返回距离，单位为米
						}


						let lastLocation = null;
						uni.onLocationChange((res) => {
							console.log('位置发生变化啦啦啦啦啦')
							const currentLocation = {
							    latitude: res.latitude,
							    longitude: res.longitude
							};
							// 如果lastLocation为空，则直接更新lastLocation
							if (!lastLocation) {
							    lastLocation = currentLocation;
							    _locationChangeFn(res);
							    console.log('位置发生变化:', res);
							    return;
							}
							 // 计算距离
							const distance = getDistance(lastLocation.latitude, lastLocation.longitude, currentLocation.latitude, currentLocation.longitude);
							console.log('两点之间的距离',distance)
							//如果距离大于100米，则执行_locationChangeFn
							if (distance > 100) {
							    lastLocation = currentLocation; // 更新lastLocation
							    _locationChangeFn(res);
							    console.log('位置发生变化:', res);
							}
						});
						// uni.onLocationChange(_locationChangeFn)
					}
				})
			},
			sendLocation(lat, lng) {
				var a = this
				a.globalajax('user/modify', {
					lat: uni.getStorageSync('latitude'),
					lng: uni.getStorageSync('longitude'),
				}, 'POST', function(res) {
					uni.hideLoading()
					if (res.data.code == 200) {
						console.log('向后台发送位置了')
						a.page = 1
						a.listJia = []
						setTimeout(() => {
							a.getList(lat,lng)
						}, 300)
					} else {
						a.$showModal({
							title:'友情提示',
							content:res.data.msg,
							showCancel:false,
							confirmText:'我知道了',
							success: (res) => {
							}
						});
					}
				});
			},
			handleTuiHide() {
				var a = this
				a.$refs.tuiTipPopup.hide();
			},
			goTuiDetail() {
				var a = this
				a.$refs.tuiTipPopup.hide();
				uni.stopLocationUpdate({
					success:res2=>{
						console.log('停止')
					}
				})
				uni.offLocationChange(function(res){
					console.log('关闭')
				})
				uni.navigateTo({
					url: '/pages/index/orderDetail'
				})
			},
			handleIdCardHide() {
				var a = this
				a.$refs.idcardTipPopup.hide();
			},
			handleIdCardExamineHide() {
				var a = this
				a.$refs.idcardExamineTipPopup.hide();
			},
			handleIdCardRejectHide(){
				var a = this
				a.$refs.idcardRejectTipPopup.hide();
			},
			goIdCard() {
				var a = this
				a.$refs.idcardTipPopup.hide();
				uni.stopLocationUpdate({
					success:res2=>{
						console.log('停止')
					}
				})
				uni.offLocationChange(function(res){
					console.log('关闭')
				})
				uni.navigateTo({
					url: '/pages/user/auth1'
				})
			},
			goIdCardReject() {
				var a = this
				a.$refs.idcardRejectTipPopup.hide();
				uni.stopLocationUpdate({
					success:res2=>{
						console.log('停止')
					}
				})
				uni.offLocationChange(function(res){
					console.log('关闭')
				})
				uni.navigateTo({
					url: '/pages/user/idCardDetail'
				})
			},
			goPay() {
				var a = this
				a.$refs.payTipPopup.hide();
				a.$refs.payTipNewPopup.hide();
				uni.stopLocationUpdate({
					success:res2=>{
						console.log('停止')
					}
				})
				uni.offLocationChange(function(res){
					console.log('关闭')
				})
				uni.navigateTo({
					url: '/pages/user/userBond'
				})
			},
			handlePayHide() {
				var a = this
				const today = new Date().toISOString().split('T')[0];
				uni.setStorageSync('modalLastShownDate', today); // 更新存储为今天的日期
				a.$refs.payTipPopup.hide();
			},
			goLogin() {
				uni.navigateTo({
					url: '/pages/user/login'
				})
			},
			showdriver() {
				var a = this
				if (a.isLogin) {
					this.$refs.showRight.open();
					this.show_status_mask = false
				} else {
					a.$showModal({
						title:'提示',
						content:'你当前未登录，登录后可操作',
						showCancel:true,
						confirmText:'去登录',
						confirmStyle: {
							color: '#418AFF'
						},
						success: (res) => {
							if(res.confirm){
								uni.navigateTo({
									url: '/pages/user/login'
								})
							}
						}
					});
				}
			},
			handleHideFailPopup() {
				var a = this
				a.$refs.qiangFailPopup.hide();
			},
			handleHideMaxPopup(){
				var a = this
				a.$refs.qiangMaxPopup.hide();
			},
			handleHideOneToOnePopup(){
				var a = this
				a.$refs.oneToOnePopup.hide();
			},
			handleRefuse(id) {
				var a = this
				if (a.refuse_btn_status) {
					a.refuse_btn_status = false
					uni.showLoading({
						title: '加载中'
					})
					a.globalajax('order/OrderRefuse', {
						id: id
					}, 'GET', function(res) {
						console.log(res);
						uni.hideLoading()
						uni.stopPullDownRefresh()
						setTimeout(() => {
							a.refuse_btn_status = true
						}, 1500)
						if (res.data.code == 200) {
							uni.showToast({
								title: '操作成功',
								icon: 'none'
							})
							setTimeout(() => {
								a.page = 1
								a.listJia = []
								a.getList()
							}, 200)
						} else {
							a.$showModal({
								title:'友情提示',
								content:res.data.msg,
								showCancel:false,
								confirmText:'我知道了',
								success: (res) => {
								}
							});
						}
					});
				}
			},
			handleGrab1() {
				var a = this
				a.$refs.qiangPopup.show();
				this.countdown = 3;
				this.timer = setInterval(() => {
					if (this.countdown > 1) {
						this.countdown--;
					} else {
						clearInterval(this.timer); // 清除定时器
						uni.showToast({
							title: '抢单成功',
							icon: 'none'
						})
						if(a.is_voice==1){
							a.onPlayAudio(8)
						}
						a.$refs.qiangPopup.hide();
					}
				}, 1000);
			},
			handleGrab(id) {
				setTimeout(() => {
					uni.$emit('restVertify',0);
				},1000)
				var a = this
				if(a.user_status!=1){
					uni.showToast({
						title:'请先上线',
						icon:'none'
					})
				}else{
					console.log(a.userinfo);
					var temp_delivery_reminder = a.userinfo.delivery_reminder * 1
					var temp_deposit = a.userinfo.info.deposit * 1
					var temp_deposit2 = a.userinfo.info.deposit2 * 1
					if (temp_deposit < temp_delivery_reminder) {
						a.$refs.payTipNewPopup.show();
					}else if(temp_deposit2 < temp_delivery_reminder){
						a.$refs.payTipNewStorePopup.show();
					}else{
						if(a.grab_btn_status){
							a.grab_btn_status = false
							uni.showLoading({
								title:'抢单中'
							})
							a.globalajax('order/grabOrders', {
								id: id,
							}, 'GET', function(res) {
								console.log(res);
								uni.hideLoading()
								setTimeout(()=>{
									a.grab_btn_status = true
								},1500)
								if (res.data.code == 200) {
									if (res.data.data == 0) {
										a.onPlayAudio(9)
										setTimeout(() => {
											a.page = 1
											a.listJia = []
											a.getList()
											a.$refs.qiangFailPopup.show();
										}, 200)
									} else if (res.data.data == 1) {
										setTimeout(() => {
											a.page = 1
											a.listJia = []
											a.getList()
										}, 200)
										a.onPlayAudio(8)
										uni.showToast({
											title: '抢单成功',
											icon: 'none'
										})
									}else if (res.data.data == 2) {
										// 已到最大接单数量
										a.max_count_tip = res.data.msg
										setTimeout(() => {
											a.page = 1
											a.listJia = []
											a.getList()
											a.$refs.qiangMaxPopup.show();
										}, 200)
										a.onPlayAudio(10)
									} else if(res.data.data == 3){
										//抢一对一的订单和其他订单冲突
										a.onetoone_count_tip = '一对一订单需当前没有正在进行中订单，才可以抢单!'
										setTimeout(() => {
											/*a.page = 1
											a.listJia = []
											a.getList()*/
											a.$refs.oneToOnePopup.show();
										}, 200)
										a.onPlayAudio(9)
									}
								} else {
									a.showError(res.data.msg);
								}
							});

						}

						// a.$refs.qiangPopup.show();
						// this.countdown = 3;
						// this.timer = setInterval(() => {
						// 	if (this.countdown > 1) {
						// 		this.countdown--;
						// 	} else {
						// 		clearInterval(this.timer); // 清除定时器
						// 		a.globalajax('order/grabOrders', {
						// 			id: id,
						// 		}, 'GET', function(res) {
						// 			console.log(res);
						// 			uni.hideLoading()
						// 			a.$refs.qiangPopup.hide();
						// 			if (res.data.code == 200) {
						// 				if (res.data.data == 0) {
						// 					if(a.is_voice==1){
						// 						a.onPlayAudio(9)
						// 					}
						// 					setTimeout(() => {
						// 						a.page = 1
						// 						a.list = []
						// 						a.getList()
						// 						a.$refs.qiangFailPopup.show();
						// 					}, 200)
						// 				} else if (res.data.data == 1) {
						// 					setTimeout(() => {
						// 						a.page = 1
						// 						a.list = []
						// 						a.getList()
						// 					}, 200)
						// 					if(a.is_voice==1){
						// 						a.onPlayAudio(8)
						// 					}
						// 					uni.showToast({
						// 						title: '抢单成功',
						// 						icon: 'none'
						// 					})
						// 				}else if (res.data.data == 2) {
						// 					// 已到最大接单数量
						// 					a.max_count_tip = res.data.msg
						// 					setTimeout(() => {
						// 						a.page = 1
						// 						a.list = []
						// 						a.getList()
						// 						a.$refs.qiangMaxPopup.show();
						// 					}, 200)
						// 					if(a.is_voice==1){
						// 						a.onPlayAudio(10)
						// 					}
						// 				}
						// 			} else {
						// 				a.$showModal({
						// 					title:'友情提示',
						// 					content:res.data.msg,
						// 					showCancel:false,
						// 					confirmText:'我知道了',
						// 					success: (res) => {
						// 					}
						// 				});
						// 			}
						// 		});
						// 	}
						// }, 1000);
					}
				}
			},
			onRefresherrefresh1() {
				console.log(3285);
				var a = this
				a.listJia = []
				if (a._freshing1) return;
				 a._freshing1 = true;
				if (!a.isTriggered1)
				a.isTriggered1 = true

				a.listJia = []

				console.log('新订单刷新了')
				if(a.isLogin){
					a.globalajax('user/info', {}, 'GET', function(res) {
						console.log(res);
						uni.hideLoading()
						uni.stopPullDownRefresh()
						if (res.data.code == 200) {
							if(res.data.data.info.status==0){
								// 账号被拉黑   清除token
								 uni.clearStorageSync()
								 uni.reLaunch({
								   url: '/pages/index/login'
								 })
							}else{
							}
						} else {
							a.$showModal({
								title:'友情提示',
								content:res.data.msg,
								showCancel:false,
								confirmText:'我知道了',
								success: (res) => {
								}
							});
						}
					});
					if (a.btn_status) {
						a.btn_status = false
						a.page = 1
						a.listJia = []
						a.isTriggered1 = true
						setTimeout(() => {
							a.getList()
						}, 300)
					}else{
						console.log('执行了这里')
						setTimeout(() => {
							a._freshing1 = false;
							a.isTriggered1 = false
						}, 200)
					}
				}else{
					uni.showToast({
						title:'请先登录',
						icon:'none'
					})
				}
			},
			onRefresherrefresh2() {
				var a = this
				a.listJia = [];
				if (a._freshing2) return;
				 a._freshing2 = true;
				if (!a.isTriggered2)
				a.isTriggered2 = true

				console.log('待取货刷新了')
				if(a.isLogin){
					a.globalajax('user/info', {}, 'GET', function(res) {
						console.log(res);
						uni.hideLoading()
						uni.stopPullDownRefresh()
						if (res.data.code == 200) {
							if(res.data.data.info.status==0){
								// 账号被拉黑   清除token
								 uni.clearStorageSync()
								 uni.reLaunch({
								   url: '/pages/index/login'
								 })
							}else{
							}
						} else {
							a.$showModal({
								title:'友情提示',
								content:res.data.msg,
								showCancel:false,
								confirmText:'我知道了',
								success: (res) => {
								}
							});
						}
					});
					if (a.btn_status) {
						a.btn_status = false
						a.page = 1
						a.listJia = []
						a.isTriggered2 = true
						setTimeout(() => {
							a.getList()
						}, 1000)
					}else{
						console.log('执行了这里')
						setTimeout(() => {
							a._freshing2 = false;
							a.isTriggered2 = false
						}, 200)
					}
				}else{
					uni.showToast({
						title:'请先登录',
						icon:'none'
					})
				}
			},
			onRefresherrefresh3() {
				var a = this
				if (a._freshing3) return;
				 a._freshing3 = true;
				if (!a.isTriggered3)
				a.isTriggered3 = true

				console.log('待完成刷新了')
				if(a.isLogin){
					a.globalajax('user/info', {}, 'GET', function(res) {
						console.log(res);
						uni.hideLoading()
						uni.stopPullDownRefresh()
						if (res.data.code == 200) {
							if(res.data.data.info.status==0){
								// 账号被拉黑   清除token
								 uni.clearStorageSync()
								 uni.reLaunch({
								   url: '/pages/index/login'
								 })
							}else{
							}
						} else {
							a.$showModal({
								title:'友情提示',
								content:res.data.msg,
								showCancel:false,
								confirmText:'我知道了',
								success: (res) => {
								}
							});
						}
					});
					if (a.btn_status) {
						a.btn_status = false
						a.page = 1
						a.listJia = []
						a.isTriggered3 = true
						setTimeout(() => {
							a.getList()
						}, 300)
					}else{
						console.log('执行了这里')
						setTimeout(() => {
							a._freshing3 = false;
							a.isTriggered3 = false
						}, 200)
					}
				}else{
					uni.showToast({
						title:'请先登录',
						icon:'none'
					})
				}
			},
			onreachBottom1() {
				console.log('新订单触底了')
				var a = this
				if (a.count > a.listJia.length) {
					console.log(a.listJia.length)
					a.page++;
					a.getList()
				}
			},
			onreachBottom2() {
				console.log('待取货触底了')
				var a = this
				if (a.count > a.listJia.length) {
					console.log(a.listJia.length)
					a.page++;
					a.getList()
				}
			},
			onreachBottom3() {
				console.log('待完成触底了')
				var a = this
				if (a.count > a.listJia.length) {
					console.log(a.listJia.length)
					a.page++;
					a.getList()
				}
			},
			scroll1(e) {
				//记录scroll  位置
				this.oldScrollTop1 = e.detail.scrollTop
			},
			scroll2(e) {
				//记录scroll  位置
				this.oldScrollTop2 = e.detail.scrollTop
			},
			scroll3(e) {
				//记录scroll  位置
				this.oldScrollTop3 = e.detail.scrollTop
			},

			changeSwiper(e) {
				this.current = e.detail.current
				var a = this
				if (a.isLogin) {
					a.touch_status = true

					if (a.current == 0) {
						a.scrollTop1 = a.oldScrollTop1
						a.select_type = 1
						a.page = 1
						a.listJia = []
						this.$nextTick(() => {
							a.scrollTop1 = 0
							if(a.listJia.length == 0){
								a.getList()
							}
						});
					}/* else if(a.current == 1){
						a.scrollTop1 = a.oldScrollTop1
						a.select_type = 4;
						a.page = 1
						a.listJia = []
						a.list = []
						this.$nextTick(() => {
							a.scrollTop1 = 0
							a.getList()
						});
					} */else if(a.current == 1){
						a.scrollTop1 = a.oldScrollTop1
						a.select_type = 2;
						a.page = 1
						a.listJia = []
						this.$nextTick(() => {
							a.scrollTop1 = 0
							if(a.listJia.length == 0){
								a.getList()
							}
						});
					} else if(a.current == 2){
						a.scrollTop1 = a.oldScrollTop1
						a.select_type = 3;
						a.page = 1
						a.listJia = []
						this.$nextTick(() => {
							a.scrollTop1 = 0
							if(a.listJia.length == 0){
								a.getList()
							}
						});
					}
				}
			},
			animationfinish(e) {
				// this.current = e.detail.current
				// var a = this
				// if(a.current==0){
				// 	a.scrollTop1 = a.oldScrollTop1
				// 	a.select_type = 1
				// 	a.page = 1
				// 	a.list = []
				// 	this.$nextTick(() =>{
				// 	    a.scrollTop1 = 0
				// 		a.getList()
				// 	});
				// }else if(a.current==1){
				// 	a.scrollTop2 = a.oldScrollTop2
				// 	a.select_type = 1
				// 	a.page = 1
				// 	a.list = []
				// 	this.$nextTick(() =>{
				// 	    a.scrollTop2 = 0
				// 		a.getList()
				// 	});
				// }else if(a.current==2){
				// 	a.scrollTop3 = a.oldScrollTop3
				// 	a.select_type = 1
				// 	a.page = 1
				// 	a.list = []
				// 	this.$nextTick(() =>{
				// 	    a.scrollTop3 = 0
				// 		a.getList()
				// 	});
				// }
			},
			changeTab(index) {
				// console.log('当前选中的项：' + index)
				console.log(index);
				this.list = []
			},
			handleShowChange() {
				var a = this
				if(a.isLogin){
					a.show_status_mask = true
				}else{
					a.$showModal({
						title:'提示',
						content:'你当前未登录，登录后可操作',
						showCancel:true,
						confirmText:'去登录',
						confirmStyle: {
							color: '#418AFF'
						},
						success: (res) => {
							if(res.confirm){
								uni.navigateTo({
									url: '/pages/user/login'
								})
							}
						}
					});
				}
			},
			handleRefresh() {
				var a = this
				if (a.isLogin) {
					if (a.btn_status) {
						a.btn_status = false
						a.page = 1
						a.listJia = []
						setTimeout(() => {
							a.getList()
						}, 200)
					}
				} else {
					a.$showModal({
						title:'提示',
						content:'你当前未登录，登录后可操作',
						showCancel:true,
						confirmText:'去登录',
						confirmStyle: {
							color: '#418AFF'
						},
						success: (res) => {
							if(res.confirm){
								uni.navigateTo({
									url: '/pages/user/login'
								})
							}
						}
					});
				}
			},
			goUserInfo() {
				this.show_status_mask = false
				this.$refs.showRight.close();
				uni.stopLocationUpdate({
					success:res2=>{
						console.log('停止')
					}
				})
				uni.offLocationChange(function(res){
					console.log('关闭')
				})
				uni.navigateTo({
					url: '/pages/user/userInfo'
				})
			},
			handleSet() {
				var a = this
				if(a.isLogin){
					a.$refs.setPopup.show();
				}else{
					a.$showModal({
						title:'提示',
						content:'你当前未登录，登录后可操作',
						showCancel:true,
						confirmText:'去登录',
						confirmStyle: {
							color: '#418AFF'
						},
						success: (res) => {
							if(res.confirm){
								uni.navigateTo({
									url: '/pages/user/login'
								})
							}
						}
					});
				}
			},
			goSet() {
				var a = this
				a.$refs.setPopup.hide();
				if (a.isLogin) {
					uni.stopLocationUpdate({
						success:res2=>{
							console.log('停止')
						}
					})
					uni.offLocationChange(function(res){
						console.log('关闭')
					})
					uni.navigateTo({
						url: '/pages/user/set'
					})
				} else {
					a.$showModal({
						title:'提示',
						content:'你当前未登录，登录后可操作',
						showCancel:true,
						confirmText:'去登录',
						confirmStyle: {
							color: '#418AFF'
						},
						success: (res) => {
							if(res.confirm){
								uni.navigateTo({
									url: '/pages/user/login'
								})
							}
						}
					});
				}
			},
			handleSetHide() {
				var a = this
				a.$refs.setPopup.hide();
			},
			handleChange(index) {
				var a = this
				a.show_status_mask = false
				if (index == 1) {
					// 休息

					a.handleChangeWork(0)
				} else {
					// 上线
					if (a.userinfo.info.certification==0&&a.userinfo.info.id_card == null) {
						// 未实名
						a.$refs.idcardTipPopup.show();
					}else if(a.userinfo.info.certification==0&&a.userinfo.info.id_card != null){
						// 实名审核中
						a.$refs.idcardExamineTipPopup.show();
					}else if(a.userinfo.info.certification==2){
						// 实名被驳回
						a.$refs.idcardRejectTipPopup.show();
					}else if(a.userinfo.info.certification==1){
						// 实名已通过
						a.handleChangeWork(1)
					}

				}
			},
			handleChangeWork(is_work) {
				console.log(is_work);
				var a = this
				if (a.work_btn_status) {
					a.work_btn_status = false
					uni.showLoading({
						title: '加载中'
					})
					a.globalajax('user/modify', {
						is_work: is_work,
					}, 'POST', function(res) {
						console.log(res);
						uni.hideLoading()
						uni.stopPullDownRefresh()
						setTimeout(() => {
							a.work_btn_status = true
						}, 1200)
						if (res.data.code == 200) {
							if (is_work == 0) {
								a.$refs.xiuxiPopup.show();
								if(a.is_voice==1){
									a.onPlayAudio(7)
								}
							} else {
								var temp_delivery_reminder = a.userinfo.delivery_reminder * 1
								var temp_deposit = a.userinfo.info.deposit * 1
								if (temp_deposit < temp_delivery_reminder) {
									a.$refs.payTipNewPopup.show();
								}
								uni.showToast({
									title: '上线成功',
									icon: 'none'
								})
								if(a.is_voice==1){
									a.onPlayAudio(6)
								}
							}
							setTimeout(() => {
								a.globalajax('user/info', {}, 'GET', function(res) {
									console.log(res);
									uni.hideLoading()
									uni.stopPullDownRefresh()
									if (res.data.code == 200) {
										a.user_status = res.data.data.info.is_work
									} else {
										a.$showModal({
											title:'友情提示',
											content:res.data.msg,
											showCancel:false,
											confirmText:'我知道了',
											success: (res) => {
											}
										});
									}
								});
							}, 200)
						} else {
							a.$showModal({
								title:'友情提示',
								content:res.data.msg,
								showCancel:false,
								confirmText:'我知道了',
								success: (res) => {
								}
							});
						}
					});
				}
			},
			handleHideTaskYiPopup(){
				var a = this
				const today = new Date().toISOString().split('T')[0];
				uni.setStorageSync('taskYiModalLastShownDate', today); // 更新存储为今天的日期
				a.$refs.taskYiPopup.hide();
			},
			handleHideTaskWeiPopup(){
				var a = this
				const today = new Date().toISOString().split('T')[0];
				uni.setStorageSync('taskModalLastShownDate', today); // 更新存储为今天的日期
				a.$refs.taskWeiPopup.hide();
			},
			handleKfCall(){
				var a = this
				// a.openAuth('CALL_PHONE')
				a.openAuthPhoneKf('CALL_PHONE')
			},
			//打开自定义权限目的弹框
			openAuth(permissionID){
				this.permissionID = permissionID;//这个是对应的权限 ACCESS_FINE_LOCATION 位置权限 / WRITE_EXTERNAL_STORAGE 存储空间/照片权限 / CAMERA相机权限 / CALL_PHONE 拨打电话
				setTimeout(()=>{
					this.$refs['authpup'].open();
				},500)
			},
			//用户授权权限后的回调
			changeAuth(){
				var a = this
				//这里是权限通过后执行自己的代码逻辑
				console.log('拨打电话权限已授权，可执行自己的代码逻辑了');
				a.$refs.kfPopup.hide();
				var temp_str = '呼叫'+ a.kf_phone
				uni.showActionSheet({
					itemList: [temp_str],
					success: function(res) {
						console.log(res);
						if (res.tapIndex == 0) {
							uni.makePhoneCall({
								phoneNumber: a.kf_phone,
								success: (res) => {
									console.log('调用成功!')
								},
							})
						}
					}
				})
			},
			handleKfWx(){
				var a = this
				a.$refs.kfPopup.hide();
				plus.share.getServices(res => {
					console.log(JSON.stringify(res));
					var sweixin = res.find(i => i.id === 'weixin')
					if (sweixin) {
						// 分享跳转到微信小程序
						sweixin.launchMiniProgram({
							id: "gh_088fa16acaff", // 	关联微信小程序的原始ID（"g_"开头的字符串）
							path: '/pages/index/kefu', //要打开小程序的路径
							type: 0 // 	微信小程序版本类型，可取值： 0-正式版； 1-测试版； 2-体验版。 默认值为0。
						}, res => {
							console.log('成功唤起微信小程序');
						}, err => {
							console.log('失败');
						})
					} else {
						// 没有获取到微信分享服务
					}
				}, err => {
					// 获取分享服务列表失败
				});
			},
			handleCloseXiuPopup(index) {
				var a = this
				a.$refs.xiuxiPopup.hide();
				if (index == 2) {
					uni.stopLocationUpdate({
						success:res2=>{
							console.log('停止')
						}
					})
					uni.offLocationChange(function(res){
						console.log('关闭')
					})
					uni.navigateTo({
						url: '/pages/user/orderStatistics'
					})
				}
			},
			onPlayAudio(index) {
				var type = index
				var audio_src = '';

				if (type == 1) {
					audio_src =
						'https://www.cccshansong.com/chong_weapp/music/xindingdan_new1_new1.mp3'; //新订单
				} else if (type == 2) {
					audio_src =
						'https://www.cccshansong.com/chong_weapp/music/tuikuan_new1_new1.mp3'; //退款取消
				} else if (type == 3) {
					audio_src =
						'https://www.cccshansong.com/chong_weapp/music/paidan_new1_new1.mp3'; //派单
				} else if (type == 4) {
					audio_src =
						'https://www.cccshansong.com/chong_weapp/music/zhuan_succ_new11.mp3'; //转单成功
				} else if (type == 5) {
					audio_src =
						'https://www.cccshansong.com/chong_weapp/music/zhuan_fail_new11.mp3'; //转单失败
				} else if (type == 6) {
					audio_src =
						'https://www.cccshansong.com/chong_weapp/music/shangxian_new_new1.mp3'; //上线
				} else if (type == 7) {
					audio_src =
						'https://www.cccshansong.com/chong_weapp/music/xiuxi_new1_new1.mp3'; //下线
				} else if (type == 8) {
					audio_src =
						'https://www.cccshansong.com/chong_weapp/music/qiang_succ_new.mp3'; //抢单成功
				} else if (type == 9) {
					audio_src =
						'https://www.cccshansong.com/chong_weapp/music/qiang_fail_new5.mp3'; //抢单失败
				} else if (type ==10) {
					audio_src =
						'https://www.cccshansong.com/chong_weapp/music/max_count.mp3'; //到达最大接单数量
				} else if (type ==11) {
					audio_src =
						'https://www.cccshansong.com/chong_weapp/music/daodian1.mp3'; //已到店
				} else if (type ==12) {
					audio_src =
						'https://www.cccshansong.com/chong_weapp/music/quhuo1.mp3'; //已取货
				} else if (type ==13) {
					audio_src =
						'https://www.cccshansong.com/chong_weapp/music/chaoshi1.mp3'; //快超时
				} else if (type ==14) {
					audio_src =
						'https://www.cccshansong.com/chong_weapp/music/songda1.mp3'; //已送达
				}

				var music = null;
				music = uni.createInnerAudioContext(); //创建播放器对象
				music.src = audio_src; //这里引入自己生成的mp3音频文件地址
				music.play(); //执行播放
				music.onEnded(() => {
					//播放结束
					music = null;
				});


			},
		}
	}
</script>

<style lang="scss">
	/deep/ .wyb-popup-box{
		background-color: transparent !important;
	}
	.btnList{
		display: flex;
		align-items: center;
		justify-content: space-between;
		box-sizing: border-box;
		/*background: linear-gradient();*/
		/*gap: 26rpx;*/
		width: 100%;
		margin-top: 32rpx;
		.ol{
			height: 80rpx;
			border-radius: 24rpx 24rpx 24rpx 24rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			image{
				width: 39rpx;
				height: 39rpx;
				margin-right: 8rpx;
			}
			text{
				font-size: 28rpx;
				color: #fff;
			}
			&.red{
				background: #FF7565;
			}
			&.blue{
				background: #418AFF;
			}
			&.orange{
				background: #FF9641;
			}
			&.green{
				background: #6febe6;
			}
		}
	}
	.kfPopup_content{
		width: 640rpx;
		height: 364rpx;
		background-image: url('https://www.cccshansong.com/chong_weapp/order_detail_icon5.png');
		background-size: 100% 100%;
		.kf_btn_title{
			text-align: center;
			font-size: 44rpx;
			padding: 36rpx 0;
			font-weight: bold;
		}
		.kf_btn_title1{
			text-align: center;
			font-size: 32rpx;
			font-weight: bold;
		}
		.kf_btn_box{
			display: flex;
			align-items: center;
			justify-content: center;
			margin-top: 66rpx;
			.kf_btn1{
				width: 280rpx;
				height: 80rpx;
				text-align: center;
				line-height: 80rpx;
				color: #418AFF;
				font-size: 30rpx;
				border-radius: 16rpx;
				border: 2rpx solid #418AFF;
			}
			.kf_btn2{
				width: 280rpx;
				height: 80rpx;
				text-align: center;
				line-height: 80rpx;
				color: #fff;
				font-size: 30rpx;
				border-radius: 16rpx;
				border: 2rpx solid #418AFF;
				background-color: #418AFF;
				position: relative;
				margin-left: 30rpx;
				.leftBox{
					position: absolute;
					top: 0;
					left: 0;
					width: 280rpx;
					height: 80rpx;
					opacity: 0;
				}
			}
		}
	}
	.task_popup_box{
		width: 606rpx;
		height: 824rpx;
		background-image: url('../../static/images/png07.png');
		background-size: 100% 100%;
		background-repeat: no-repeat;
		position: relative;
		.task_popup_box_title{
			width: 592rpx;
			text-align: center;
			color: rgba(36, 40, 49, 1);
			font-size: 36rpx;
			position: absolute;
			left: 0;
			top:254rpx;
			font-weight: bold;
		}
		.task_popup_box_title1{
			width: 592rpx;
			text-align: center;
			color: rgba(96, 98, 102, 1);
			font-size: 26rpx;
			position: absolute;
			left: 0;
			top:365rpx;
		}
		.task_popup_box_content{
			width: 462rpx;
			height: 182rpx;
			background-color: #FFF7F0;
			border-radius: 16rpx;
			position: absolute;
			left: 50%;
			transform: translateX(-50%);
			top:435rpx;
			.index_drawer_task_tip {
				padding: 16rpx;
				color: #FF3C26;
				font-size: 28rpx;
			}
			.index_drawer_task_scroll {
				margin-left: 16rpx;
				white-space: nowrap;
				width: 95%;
				position: relative;

				.index_drawer_task_scroll_heng {
					position: absolute;
					top: 0;
					left: 0;
					background-color: rgba(255, 212, 187, 1);
					height: 24rpx;
					width: auto;
					border-radius: 14rpx;
				}

				.index_drawer_task_scroll_item {
					display: inline-flex;

					.index_drawer_task_scroll_item_zw {
						width: 102rpx;
						background-color: rgba(255, 212, 187, 1);
						height: 24rpx;
						border-radius: 14rpx;
						margin-left: -20rpx;
						margin-top: 22rpx;
						position: relative;

						.index_drawer_task_scroll_item_zw1 {
							background-color: #418AFF;
							position: absolute;
							top: 0;
							height: 24rpx;
							border-radius: 14rpx;
							width: 98rpx;
						}
					}

					.index_drawer_task_scroll_item_content {
						display: flex;
						flex-direction: column;
						align-items: center;
						justify-content: center;
						margin-left: -20rpx;
						z-index: 10;
						position: relative;
						top: -15rpx;

						.index_drawer_task_scroll_item_img_tip {
							color: #FF3C26;
							font-size: 20rpx;
							margin-top: 8rpx;
						}

						.index_drawer_task_scroll_item_img {
							width: 84rpx;
							height: 80rpx;
							background-image: url('../../static/images/icon15.png');
							background-size: 100% 100%;
							position: relative;

							.index_drawer_task_scroll_item_img_text {
								width: 84rpx;
								position: absolute;
								text-align: center;
								top: 20rpx;
								left: 0;
								color: #FF3C26;
								font-size: 20rpx;
							}
						}
					}
				}

				.index_drawer_task_scroll_item:nth-child(1) {
					.index_drawer_task_scroll_item_zw {
						margin-left: 0rpx;
					}
				}
			}
		}
		.task_popup_box_btn{
			position: absolute;
			left: 50%;
			transform: translateX(-50%);
			top:671rpx;
			width: 462rpx;
			height: 88rpx;
			background: linear-gradient( 180deg, #FF5A47 0%, #FFB47F 100%);
			border-radius: 48rpx 48rpx 48rpx 48rpx;
			text-align: center;
			line-height: 88rpx;
			font-size: 40rpx;
			color: #fff;
		}
	}
	.ask_img_box{
		width: 600rpx;
		margin-left: 30rpx;
		position: relative;
		.ask_img_num{
			position: absolute;
			top: 28rpx;
			right: 30rpx;
			color: #909399;
			font-size: 24rpx;
		}
		.ask_title{
			padding-top: 28rpx;
			font-size: 30rpx;
			color: rgba(48, 49, 51, 1);
		}
		.img_list{
			display: flex;
			width: 600rpx;
			margin: 0 auto;
			margin-top: 10rpx;
			// flex-wrap: wrap;
		}
	}
	.pay_popup_box {
		display: flex;
		align-items: center;
		justify-content: center;
		padding-top: 56rpx;

		.pay_popup_btn {
			width: 286rpx;
			height: 80rpx;
			text-align: center;
			line-height: 80rpx;
			border: 2rpx solid rgba(228, 231, 237, 1);
			border-radius: 16rpx;
			font-size: 30rpx;
			color: rgba(36, 40, 49, 1);
		}

		.pay_popup_btn1 {
			width: 286rpx;
			height: 80rpx;
			text-align: center;
			line-height: 80rpx;
			border-radius: 16rpx;
			font-size: 30rpx;
			color: #fff;
			margin-left: 20rpx;
			background-color: #418AFF;
		}
	}

	.set_popup_box {
		width: 610rpx;
		height: 914rpx;
		background-image: url('../../static/images/png08.png');
		background-size: 100% 100%;
		position: relative;

		.set_popup_btn {
			position: absolute;
			bottom: 120rpx;
			left: 74rpx;
			width: 492rpx;
			height: 80rpx;
			text-align: center;
			line-height: 80rpx;
			color: #fff;
			background-color: #418AFF;
			border-radius: 12rpx;
			font-size: 32rpx;
		}

		.set_popup_btn1 {
			position: absolute;
			bottom: 40rpx;
			left: 74rpx;
			width: 492rpx;
			height: 80rpx;
			text-align: center;
			line-height: 80rpx;
			color: rgba(144, 147, 153, 1);
			border-radius: 12rpx;
			font-size: 32rpx;
		}
	}

	.index_drawer_box {
		width: 660rpx;
		height: 100vh;
		background-color: #f5f6f8;
		position: relative;

		.index_drawer_bj_box {
			position: absolute;
			top: 0;
			left: 0;
			width: 660rpx;
			height: 600rpx;
			z-index: 1;
			background-image: url('../../static/images/png02.png');
			background-size: 100% 100%;
		}

		.index_drawer_content_box {
			width: 660rpx;
			height: 100%;
			position: absolute;
			top: 0;
			left: 0;
			z-index: 2;

			.index_drawer_invite_box {
				width: 612rpx;
				height: 172rpx;
				margin: 0 auto;
				margin-top: 28rpx;

				image {
					width: 100%;
					height: 100%;
				}
			}

			.indexDraweNav{
				padding: 0 32rpx;
				.box{
					margin-top: 32rpx;
					background: #FFFFFF;
					box-shadow: 0rpx 0rpx 16rpx 0rpx rgba(0,0,0,0.08);
					border-radius: 24rpx 24rpx 24rpx 24rpx;
					padding: 32rpx 24rpx 40rpx 24rpx;
					.title{
						font-size: 32rpx;
						color: #333;
					}
					.list{
						display: flex;
						align-items: center;
						flex-wrap: wrap;
						margin-top: -32rpx;
						.li{
							display: flex;
							flex-direction: column;
							align-items: center;
							width: 25%;
							margin-top: 56rpx;
							position: relative;
							.index_drawer_nav_item_box_btn{
								position: absolute;
								top: 0;
								left: 0;
								height:100%;
								width: 100%;
								background-color: #418AFF;
								opacity: 0;
							}
							text{
								font-size: 20rpx;
								color: #333;
								margin-top: 8rpx;
							}
							image{
								width: 56rpx;
								height: 56rpx;
							}
						}
					}
				}
			}
			.index_drawer_nav_box {
				width: 612rpx;
				// height: 642rpx;
				padding-top: 20rpx;
				padding-bottom: 20rpx;
				background-color: #fff;
				border-radius: 16rpx;
				margin: 0 auto;
				margin-top: 20rpx;

				.index_drawer_nav_item_box {
					height: 96rpx;
					display: flex;
					align-items: center;
					justify-content: space-between;
					position: relative;
					.index_drawer_nav_item_box_btn{
						position: absolute;
						top: 0;
						left: 0;
						height: 96rpx;
						width: 590rpx;
						background-color: #418AFF;
						opacity: 0;
					}
					.index_drawer_nav_item_left {
						display: flex;
						align-items: center;
						margin-left: 20rpx;
						color: rgba(36, 40, 49, 1);
						font-size: 30rpx;
						font-weight: 600;

						image {
							width: 44rpx;
							height: 44rpx;
							margin-right: 16rpx;
						}
					}

					.index_drawer_nav_item_right {
						display: flex;
						align-items: center;

						text {
							color: rgba(36, 40, 49, 1);
							font-size: 30rpx;
							font-weight: bold;
						}

						image {
							margin-left: 14rpx;
							width: 40rpx;
							height: 40rpx;
							margin-right: 16rpx;
						}
					}
				}
			}
			.index_drawer_task_main{
				padding: 0 32rpx;
				.index_drawer_task_box {
					/*height: 276rpx;*/
					background-color: #fff;
					border-radius: 16rpx;
					margin-top: 32rpx;
					box-shadow: 0rpx 0rpx 16rpx 0rpx rgba(0,0,0,0.08);
					padding: 0 24rpx 32rpx 24rpx;

					.index_drawer_task_content_box {
						height: 182rpx;
						background-color: #FFF6F5;
						border-radius: 16rpx;
						margin: 0 auto;
						margin-top: 22rpx;

						.index_drawer_task_scroll {
							margin-left: 16rpx;
							white-space: nowrap;
							width: 95%;
							position: relative;

							.index_drawer_task_scroll_heng {
								position: absolute;
								top: 0;
								left: 0;
								background-color: rgba(255, 212, 187, 1);
								height: 24rpx;
								width: auto;
								border-radius: 14rpx;
							}

							.index_drawer_task_scroll_item {
								display: inline-flex;

								.index_drawer_task_scroll_item_zw {
									width: 102rpx;
									background-color: rgba(255, 212, 187, 1);
									height: 24rpx;
									border-radius: 14rpx;
									margin-left: -20rpx;
									margin-top: 22rpx;
									position: relative;

									.index_drawer_task_scroll_item_zw1 {
										background-color: #418AFF;
										position: absolute;
										top: 0;
										height: 24rpx;
										border-radius: 14rpx;
										width: 98rpx;
									}
								}

								.index_drawer_task_scroll_item_content {
									display: flex;
									flex-direction: column;
									align-items: center;
									justify-content: center;
									margin-left: -20rpx;
									z-index: 10;
									position: relative;
									top: -15rpx;

									.index_drawer_task_scroll_item_img_tip {
										color: #418AFF;
										font-size: 20rpx;
										margin-top: 8rpx;
									}

									.index_drawer_task_scroll_item_img {
										width: 84rpx;
										height: 80rpx;
										background-image: url('../../static/images/icon15.png');
										background-size: 100% 100%;
										position: relative;

										.index_drawer_task_scroll_item_img_text {
											width: 84rpx;
											position: absolute;
											text-align: center;
											top: 20rpx;
											left: 0;
											color: #FF3C26;
											font-size: 20rpx;
										}
									}
								}
							}

							.index_drawer_task_scroll_item:nth-child(1) {
								.index_drawer_task_scroll_item_zw {
									margin-left: 0rpx;
								}
							}
						}

						.index_drawer_task_tip {
							padding: 16rpx;
							color: #FF3C26;
							font-size: 28rpx;
						}
					}

					.index_drawer_task_top_box {
						display: flex;
						align-items: center;
						justify-content: space-between;
						padding-top: 20rpx;

						.index_drawer_task_top_left_box {
							width: 128rpx;
							height: 32rpx;
							/*margin-left: 20rpx;*/
							font-size: 32rpx;
							color: #333;

							/*image {
                                width: 100%;
                                height: 100%;
                            }*/
						}

						.index_drawer_task_top_right_box {
							display: flex;
							align-items: center;
							color: #666;
							font-size: 24rpx;
							/*margin-right: 16rpx;*/

							image {
								width: 20rpx;
								height: 20rpx;
							}
						}
					}
				}
			}


			.index_drawer_count_box {
				padding: 0 30rpx;
				margin-top: 32rpx;
				.successOrder{
					background: rgba(255,255,255,0.6);
					box-shadow: 0rpx 0rpx 16rpx 0rpx rgba(0,0,0,0.08);
					border-radius: 24rpx 24rpx 24rpx 24rpx;
					padding: 26rpx 24rpx;
					.top{
						display: flex;
						align-items: center;
						justify-content: space-between;
						padding: 0 50rpx 26rpx 50rpx;
						border-bottom: 1px solid #418AFF;
						.li{
							display: flex;
							flex-direction: column;
							align-items: center;
							justify-content: center;
							.h1{
								font-size: 48rpx;
								color: #418AFF;
								font-weight: bold;
							}
							.h2{
								font-size: 28rpx;
								color: #666;
								margin-top: 8rpx;
								image{
									width: 25rpx;
									height: 24rpx;
								}
							}
						}
					}
					.btm{
						padding: 24rpx 24rpx 0 24rpx;
						display: flex;
						align-items: center;
						justify-content: space-between;
						.li{
							display: flex;
							align-items: center;
							image{
								width: 48rpx;
								height: 48rpx;
							}
							text{
								font-size: 28rpx;
								color: #333;
								margin-left: 16rpx;
							}
						}
					}
				}
				/*width: 612rpx;
				height: 160rpx;
				background-image: url('https://www.cccshansong.com/chong_weapp/drawer_icon5.png');
				background-size: 100% 100%;
				margin: 0 auto;
				margin-top: 32rpx;
				display: flex;

				.xiuxi_popup_count_item_box {
					width: 50%;
					display: flex;
					align-items: center;
					justify-content: center;
					flex-direction: column;
					position: relative;

					.xiuxi_popup_count_item_shu {
						width: 2rpx;
						height: 40rpx;
						position: absolute;
						right: 0;
						bottom: 46rpx;
						background-color: rgba(255, 255, 255, 0.2);
					}

					.xiuxi_popup_count_item_title {
						color: rgba(255, 255, 255, 1);
						font-size: 24rpx;
						display: flex;
						align-items: center;
						justify-content: center;
						margin-top: 10rpx;

						image {
							width: 28rpx;
							height: 28rpx;
							margin-left: 8rpx;
						}
					}

					.xiuxi_popup_count_item_num {
						font-weight: bold;
						color: rgba(255, 255, 255, 1);
						font-size: 44rpx;

					}
				}*/
			}

			.index_drawer_info_box {
				padding-top: 88rpx;
				display: flex;
				justify-content: space-between;

				.index_drawer_info_right {
					margin-right: 24rpx;
					width: 60rpx;
					height: 60rpx;
					display: flex;
					align-items: center;
					justify-content: center;
					position: relative;

					.index_drawer_info_right_dian {
						position: absolute;
						top: 0;
						right: 0;
						width: 12rpx;
						height: 12rpx;
						background-color: rgba(255, 77, 79, 1);
						border-radius: 50%;
					}

					image {
						width: 32rpx;
						height: 32rpx;
					}
				}

				.index_drawer_info_left {
					display: flex;
					align-items: center;

					.index_drawer_info_img {
						width: 132rpx;
						height: 132rpx;
						margin-left: 30rpx;

						image {
							width: 100%;
							height: 100%;
							border-radius: 50%;
						}
					}

					.index_drawer_info_center {
						margin-left: 24rpx;
						height: 132rpx;
						display: flex;
						flex-direction: column;
						justify-content: space-between;

						.index_drawer_info_center_top_box {
							display: flex;
							align-items: center;

							.index_drawer_info_center_name {
								color: #fff;
								font-size: 32rpx;
								font-weight: bold;
							}

							image {
								width: 32rpx;
								height: 32rpx;
								margin-left: 16rpx;
							}
						}
						.status{
							width: 112rpx;
							height: 32rpx;
							background: #418AFF;
							border-radius: 16rpx 0rpx 16rpx 0rpx;
							font-size: 20rpx;
							color: #fff;
							text-align: center;
						}

						.index_drawer_info_center_phone {
							color: #fff;
							font-size: 28rpx;
							display: flex;
							.auth_status_box{
								width: 132rpx;
								height: 40rpx;
								background: #FFFFFF;
								border-radius: 8rpx 8rpx 8rpx 8rpx;
								text-align: center;
								line-height: 40rpx;
								color: #418AFF;
								border-radius: 8rpx;
								font-size: 20rpx;
								margin-left: 32rpx;
							}
							.auth_status_box1{
								background-color: rgba(255, 107, 0, 0.1);
								// width: 146rpx;
								padding: 0 12rpx;
								height: 40rpx;
								text-align: center;
								line-height: 40rpx;
								color: #418AFF;
								border-radius: 8rpx;
								font-size: 24rpx;
								margin-left: 20rpx;
							}
						}
					}
				}
			}
		}
	}

	page {
		height: 100vh;
		background-color: #f5f6f8;
	}

	.qiang_fail_btn {
		width: 288rpx;
		height: 80rpx;
		text-align: center;
		line-height: 80rpx;
		color: #fff;
		font-size: 30rpx;
		margin: 0 auto;
		background-color: #418AFF;
		border-radius: 16rpx;
		margin-top: 66rpx;
	}

	.rotate-image {
		width: 144rpx;
		/* 根据实际需求设置图片宽度 */
		height: 144rpx;
		/* 根据实际需求设置图片高度 */
		animation: rotate 2s linear infinite;
		/* 设置旋转动画 */
	}

	@keyframes rotate {
		from {
			transform: rotate(0deg);
			/* 从0度开始旋转 */
		}

		to {
			transform: rotate(360deg);
			/* 旋转到360度 */
		}
	}

	.qiang_ucc_popup_tip {
		text-align: center;
		color: rgba(96, 98, 102, 1);
		font-size: 30rpx;
		/*margin-top: -30rpx;*/
	}

	.custom_service_order_reckon_box {
		width: 144rpx;
		height: 144rpx;
		margin: 0 auto;
		margin-top: 12rpx;
		position: relative;

		.custom_service_order_reckon_info_box {
			position: absolute;
			top: 18rpx;
			left: 18rpx;
			width: 112rpx;
			height: 112rpx;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			border-radius: 50%;
			color: #FFF;
			font-size: 64rpx;
			text-align: center;
			line-height: 112rpx;
			font-weight: bold;
		}

		image {
			width: 100%;
			height: 100%;
		}
	}

	.scroll_item_box {
		width: 100%;
		background-color: #F5F6F8;
		padding-top: 24rpx;
		height: calc(100vh - 400rpx);

		.orderList{
			padding: 0 32rpx;
			.li{
				background: #FFFFFF;
				box-shadow: 0rpx 0rpx 8rpx 0rpx rgba(0,0,0,0.12);
				border-radius: 24rpx;
				padding: 16rpx 24rpx 24rpx 24rpx;
				margin-bottom: 32rpx;
				.top{
					height: 68rpx;
					display: flex;
					align-items: center;
					justify-content: space-between;
					border-bottom: 1rpx solid #418AFF;
					.fl{
						display: flex;
						align-items: center;
						.h1{
							font-size: 48rpx;
							color: #FF3C26;
							font-weight: bold;
							text{
								font-size: 28rpx;
								font-weight: 400;
							}
						}
						.h2{
							padding: 0 16rpx;
							height: 36rpx;
							border-radius: 8rpx 8rpx 8rpx 8rpx;
							border: 2rpx solid #418AFF;
							font-size: 20rpx;
							color: #418AFF;
							line-height: 36rpx;
							text-align: center;
							margin-left: 26rpx;
						}
					}
					.fr{
						display: flex;
						align-items: center;
						.h1{
							width: 74rpx;
							height: 40rpx;
							background: #418AFF;
							border-radius: 32rpx 8rpx 8rpx 32rpx;
							display: flex;
							align-items: center;
							justify-content: center;
							image{
								width: 25rpx;
								height: 24rpx;
							}
							text{
								font-size: 20rpx;
								color: #fff;
								margin-left: 8rpx;
								display: inline-block;
							}
						}
						.h2{
							font-size: 28rpx;
							color: #418AFF;
							margin-left: 8rpx;
						}
						.h3{
							font-size: 28rpx;
							color: #666;
						}
					}
				}
				.center{
					padding-top: 24rpx;
					.start{
						display: flex;
						align-items: center;
						justify-content: space-between;
						.fl{
							.h1{
								padding-left: 48rpx;
								position: relative;
								font-size: 32rpx;
								color: #333;
								&:after{
									content: '';
									display: block;
									width: 16rpx;
									height: 16rpx;
									background: #418AFF;
									position: absolute;
									left: 8rpx;
									top: 50%;
									transform: translateY(-50%);
									border-radius: 50%;
								}
							}
							.h2{
								display: flex;
								margin-top: 8rpx;
								align-items: center;
								image{
									width: 32rpx;
									height: 62rpx;
								}
								.h2Con{
									flex: 1;
									padding-left: 16rpx;
									font-size: 24rpx;
                                    color: #666;
								}
							}
						}
						.fr{
							text-align: center;
							.h1{
								font-size: 20rpx;
								color: #418AFF;
							}
							.h2{
								font-size: 26rpx;
								color: #666;
							}
						}
					}
					.end{
						display: flex;
						align-items: center;
						justify-content: space-between;
						margin-top: 20rpx;
						.fl{
							.h1{
								padding-left: 48rpx;
								position: relative;
								font-size: 32rpx;
								color: #333;
								&:after{
									content: '';
									display: block;
									width: 16rpx;
									height: 16rpx;
									background: #FF3C26;
									position: absolute;
									left: 8rpx;
									top: 20rpx;
									border-radius: 50%;
								}
							}
						}
						.fr{
							text-align: center;
							.h1{
								font-size: 20rpx;
								color: #418AFF;
							}
							.h2{
								font-size: 26rpx;
								color: #666;
							}
						}
					}
					.notes{

						background: #EEEEEE;
						border-radius: 16rpx 16rpx 16rpx 16rpx;
						padding: 14rpx 16rpx;
						line-height: 35rpx;
						display: flex;
						/*align-items: center;*/
						margin-top: 24rpx;
						.h1{
							font-size: 24rpx;
							color: #333;
						}
						.h2{
							font-size: 24rpx;
							color: #666;
							flex:1;
						}
					}

					.scroll_item_order_btn_box {
						display: flex;
						align-items: center;
						justify-content: center;
						margin-top: 26rpx;

						.scroll_item_order_btn1 {
							width: 228rpx;
							height: 88rpx;
							line-height: 88rpx;
							text-align: center;
							color: #fff;
							background-color: #418AFF;
							border-radius: 12rpx;
							font-size: 32rpx;
							margin-right: 20rpx;
						}

						.scroll_item_order_btn2 {
							flex:1;
							height: 88rpx;
							line-height: 88rpx;
							text-align: center;
							color: #fff;
							background-color: #418AFF;
							border-radius: 12rpx;
							font-size: 32rpx;
							display: flex;
							align-items: center;
							justify-content: center;
							/deep/ .u-count-down{
								margin-left: 5rpx;
								text{
									font-size: 32rpx;
									color: #fff;
								}
							}
						}

						.scroll_item_order_btn3 {
							height: 88rpx;
							display: flex;
							flex-direction: column;
							align-items: center;
							justify-content: center;
							padding: 0 16rpx;
							margin-right: 20rpx;
							text{
								color: rgba(96, 98, 102, 1);
								font-size: 24rpx;
								padding-top: 10rpx;
								padding-bottom: 0;
							}
							image {
								width: 36rpx;
								height: 36rpx;
							}
						}

						.scroll_item_order_btn4 {
							flex: 1;
							height: 88rpx;
							line-height: 88rpx;
							text-align: center;
							color: #fff;
							background-color: rgba(0, 117, 255, 1);
							border-radius: 12rpx;
							font-size: 32rpx;
						}

						.scroll_item_order_btn5 {
							width: 544rpx;
							height: 88rpx;
							line-height: 88rpx;
							text-align: center;
							color: #fff;
							background-color: rgba(44, 190, 118, 1);
							border-radius: 12rpx;
							font-size: 32rpx;
							flex: 1;
						}
					}
				}
			}
		}

		.scroll_item_order_box {
			width: 702rpx;
			min-height: 360rpx;
			padding-bottom: 24rpx;
			background-color: #fff;
			margin: 0 auto;
			border-radius: 16rpx;
			margin-bottom: 24rpx;

			.scroll_item_order_status_box {
				display: flex;
				align-items: center;
				// margin-left: 78rpx;
				margin-left: 24rpx;
				margin-top: 20rpx;
				.scroll_item_order_no_right{
					color: #242831;
					font-size: 50rpx;
					font-weight: bold;
					margin-left: 20rpx;
					text{
						margin-right: 6rpx;
						font-size: 30rpx;
					}
				}
				.scroll_item_order_no_score{
					margin-left: 20rpx;
					padding: 0 16rpx;
					height: 44rpx;
					line-height: 44rpx;
					font-size: 24rpx;
					border-radius: 6rpx;
					background-color: #fff;
					border: 2rpx solid #418AFF;
					color: #418AFF;
				}
				.scroll_item_order_status {
					height: 48rpx;
					line-height: 48rpx;
					padding: 0 16rpx;
					border-radius: 6rpx;
					background-color: #418AFF;
					color: #fff;
					font-size: 24rpx;
				}

				.scroll_item_order_status1 {
					background-color: rgba(3, 214, 214, 1);
				}

				.scroll_item_order_status2 {
					background-color: rgba(0, 124, 239, 1);
				}

				.scroll_item_order_status3 {
					background-color: rgba(44, 190, 118, 1);
				}

				.scroll_item_order_status_phone {
					height: 48rpx;
					line-height: 48rpx;
					display: flex;
					align-items: center;
					justify-content: center;
					padding: 0 16rpx;
					color: rgba(36, 40, 49, 1);
					font-size: 28rpx;
					border: 2rpx solid rgba(228, 231, 237, 1);
					border-radius: 6rpx;
					margin-right: 20rpx;

					text {
						color: #418AFF;
					}

					image {
						width: 32rpx;
						height: 32rpx;
						margin-left: 14rpx;
					}
				}
			}

			.scroll_item_order_btn_box {
				display: flex;
				align-items: center;
				justify-content: center;
				margin-top: 26rpx;

				.scroll_item_order_btn1 {
					width: 228rpx;
					height: 88rpx;
					line-height: 88rpx;
					text-align: center;
					color: #fff;
					background-color: rgba(255, 168, 0, 1);
					border-radius: 12rpx;
					font-size: 32rpx;
					margin-right: 20rpx;
				}

				.scroll_item_order_btn2 {
					width: 414rpx;
					height: 88rpx;
					line-height: 88rpx;
					text-align: center;
					color: #fff;
					background-color: #418AFF;
					border-radius: 12rpx;
					font-size: 32rpx;
				}

				.scroll_item_order_btn3 {
					height: 88rpx;
					display: flex;
					flex-direction: column;
					align-items: center;
					justify-content: center;
					padding: 0 16rpx;
					margin-right: 20rpx;
					text{
						color: rgba(96, 98, 102, 1);
						font-size: 24rpx;
						padding-top: 10rpx;
						padding-bottom: 0;
					}
					image {
						width: 36rpx;
						height: 36rpx;
					}
				}

				.scroll_item_order_btn4 {
					width: 544rpx;
					height: 88rpx;
					line-height: 88rpx;
					text-align: center;
					color: #fff;
					background-color: rgba(0, 117, 255, 1);
					border-radius: 12rpx;
					font-size: 32rpx;
				}

				.scroll_item_order_btn5 {
					width: 544rpx;
					height: 88rpx;
					line-height: 88rpx;
					text-align: center;
					color: #fff;
					background-color: rgba(44, 190, 118, 1);
					border-radius: 12rpx;
					font-size: 32rpx;
				}
			}

			.scroll_item_order_remark_box {
				width: 624rpx;
				// min-height: 64rpx;
				padding-top: 12rpx;
				padding-bottom: 12rpx;
				padding-left: 16rpx;
				padding-right: 16rpx;
				margin: 0 auto;
				margin-top: 24rpx;
				background-color: rgba(245, 246, 248, 1);
				font-size: 26rpx;
				color: rgba(96, 98, 102, 1);
				border-radius: 12rpx;

				text {
					color: rgba(48, 49, 51, 1);
				}
			}

			.scroll_item_order_center_box {
				margin-top: 10rpx;

				.qu_address_item_box {
					display: flex;
					justify-content: space-between;

					.dh_icon_box {
						width: 56rpx;
						height: 56rpx;
						margin-right: 20rpx;
						margin-top: 10rpx;

						image {
							width: 100%;
							height: 100%;
						}
					}

					.qu_address_item_left_box {
						display: flex;
						margin-top: 14rpx;
						.qu_address_icon_box_content{
							margin-left: 20rpx;
							display: flex;
							flex-direction: column;
							align-items: center;
							flex: 1;
							.qu_address_xian_box{
								width: 2rpx;
								margin-top: 10rpx;
								height: auto;
								min-height: 54rpx;
								background-color:rgba(124, 132, 156, 0.85);
								position: relative;
								flex: 1;
								.qu_address_xian_box_container{
									position: absolute;
									top: 50%;
									left: 50%;
									width:80rpx;
									// height: 24rpx;
									transform: translate(-50%, -50%);
									display: flex;
									flex-direction: column;
									align-items: center;
									justify-content: center;
									background-color: #fff;
								}
								image{
									position: absolute;
									top: 50%;
									left: 50%;
									width:20rpx;
									height: 24rpx;
									transform: translate(-50%, -50%);
								}
							}
							.qu_address_icon_box {
								width: 46rpx;
								display: flex;
								flex-direction: column;
								align-items: center;
								justify-content: center;
								margin-top: 10rpx;
								image {
									width: 46rpx;
									height: 36rpx;
								}
							}
						}


						.qu_address_box {
							margin-left: 20rpx;

							.qu_address_title {
								color: rgba(36, 40, 49, 1);
								font-size: 36rpx;
								font-weight: bold;
								width: 454rpx;
								text-overflow: -o-ellipsis-lastline;
								overflow: hidden;
								text-overflow: ellipsis;
								display: -webkit-box;
								-webkit-line-clamp: 4;
								line-clamp: 4;
								-webkit-box-orient: vertical;
							}

							.qu_address_desc {
								color: rgba(96, 98, 102, 1);
								font-size: 26rpx;
								width: 454rpx;
								// white-space: nowrap;
								// text-overflow: ellipsis;
								// overflow: hidden;
								// word-break: break-all;
								margin-top: 6rpx;
							}
						}
					}
				}


			}

			.scroll_item_order_top_box {
				display: flex;
				align-items: center;
				justify-content: space-between;
				padding-top: 20rpx;

				.scroll_item_order_top_price {
					display: flex;
					align-items: center;
					padding-right: 20rpx;

					.scroll_item_order_top_price_tip {
						color: rgba(144, 147, 153, 1);
						font-size: 26rpx;
						margin-right: 10rpx;
					}

					.scroll_item_order_top_price_num {
						color: #418AFF;
						font-size: 44rpx;
						font-weight: bold;

						text {
							font-weight: 400;
							font-size: 28rpx;
							margin-right: 6rpx;
						}
					}
				}

				.scroll_item_order_top_time {
					display: flex;
					align-items: center;
					color: #418AFF;
					font-size: 26rpx;
					margin-left: 20rpx;
					.yu{
						display: inline-block;
						width: 50rpx;
						height: 40rpx;
						background-color: rgba(255, 168, 0, 1);
						text-align: center;
						line-height: 40rpx;
						color: #fff;
						font-size: 24rpx;
						margin-right: 10rpx;
						border-radius: 6rpx;
					}
					image {
						width: 28rpx;
						height: 28rpx;
						margin-right: 8rpx;
					}
				}
			}
		}
	}

	.index_swiper_box {
		width: 100%;
		height: calc(100vh - 400rpx);
		// background-color: burlywood;
	}

	.record_fix_box {
		position: fixed;
		left: 0;
		bottom: 0;
		z-index: 9;
		width: 750rpx;
		box-sizing: border-box;
		padding: 16rpx 56rpx 0 56rpx;
		padding-top: 16rpx;
		box-shadow: 0rpx 0rpx 26rpx 0rpx rgba(0, 0, 0, 0.0800);
		padding-bottom: calc(16rpx + constant(safe-area-inset-bottom));
		padding-bottom: calc(16rpx + env(safe-area-inset-bottom));
		background-color: #fff;
		display: flex;
		align-items: center;
		justify-content: space-between;

		.record_fix_btn1 {
			width: 104rpx;
			height: 80rpx;
			opacity: 1;
			border-radius: 16rpx;
			display: flex;
			justify-content: center;
			align-items: center;
			flex-direction: column;
			color: #666;
			font-size: 20rpx;

			image {
				width: 48rpx;
				height: 48rpx;
			}
		}

		.record_fix_btn {
			width: 366rpx;
			height: 80rpx;
			opacity: 1;
			border-radius: 80rpx;
			display: flex;
			justify-content: center;
			align-items: center;
			color: #418AFF;
			font-size: 28rpx;
			border: 4rpx solid #418AFF;

			image {
				width: 49rpx;
				height: 49rpx;
				margin-right: 20rpx;
			}
		}

		.chat{
			text-align: center;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			image{
				width: 48rpx;
				height: 48rpx;
			}
			text{
				font-size: 20rpx;
				color: #666;
			}
		}
	}

	.xiuxi_popup_bj {
		width: 640rpx;
		/*height: 356rpx;*/
		background-image: url('https://www.cccshansong.com/chong_weapp/xiuxi_popup_bj.png') top center;
		background-size: cover;
		background: linear-gradient(180deg,#94bbfb,#fff,#fff);
		border-radius: 16rpx;
		overflow: hidden;
		padding-bottom: 30rpx;

		.xiuxi_popup_tip_img {
			width: 144rpx;
			height: 144rpx;
			margin: 0 auto;

			image {
				width: 100%;
				height: 100%;
			}
		}

		.xiuxi_popup_tip_text {
			text-align: center;
			font-weight: bold;
			color: rgba(36, 40, 49, 1);
			font-size: 40rpx;
			margin-top: 20rpx;
		}
	}

	.xiuxi_popup_btn_box {
		display: flex;
		align-items: center;
		justify-content: center;
		margin-top: 70rpx;

		.xiuxi_popup_btn1 {
			width: 270rpx;
			height: 80rpx;
			text-align: center;
			line-height: 80rpx;
			color: rgba(36, 40, 49, 1);
			font-size: 30rpx;
			border: 2rpx solid rgba(228, 231, 237, 1);
			border-radius: 16rpx;
		}

		.xiuxi_popup_btn2 {
			width: 270rpx;
			height: 80rpx;
			text-align: center;
			line-height: 80rpx;
			color: #418AFF;
			font-size: 30rpx;
			border: 2rpx solid #418AFF;
			margin-left: 30rpx;
			border-radius: 16rpx;
		}
	}

	.xiuxi_popup_count_box {
		width: 592rpx;
		height: 184rpx;
		background-image: url('https://www.cccshansong.com/chong_weapp/xiuxi_popup_icon1.png');
		background-size: 100% 100%;
		margin: 0 auto;
		margin-top: -60rpx;
		display: flex;
		box-shadow: 0rpx 0rpx 8rpx 0rpx rgba(0,0,0,0.12);

		.xiuxi_popup_count_item_box {
			width: 50%;
			display: flex;
			align-items: center;
			justify-content: center;
			flex-direction: column;
			position: relative;

			.xiuxi_popup_count_item_shu {
				width: 2rpx;
				height: 40rpx;
				position: absolute;
				right: 0;
				bottom: 46rpx;
				background-color: rgba(255, 255, 255, 0.2);
			}

			.xiuxi_popup_count_item_title {
				color: #222;
				font-size: 28rpx;
			}

			.xiuxi_popup_count_item_num {
				font-weight: bold;
				color: #222;
				font-size: 60rpx;
				margin-top: 10rpx;
			}
		}
	}

	.navbar_wrapper_left_status_absolute {
		position: fixed;
		z-index: 9999;
		top: 120rpx;
		left: 112rpx;
		width: 164rpx;
		height: 78rpx;
		background-image: url('https://www.cccshansong.com/chong_weapp/bianzu.png');
		background-size: 100% 100%;

		.navbar_wrapper_left_status_absolute_text {
			display: flex;
			align-items: center;
			justify-content: center;
			color: #fff;
			font-size: 30rpx;
			padding-top: 28rpx;

			image {
				width: 36rpx;
				height: 36rpx;
				margin-right: 18rpx;
			}
		}
	}

	.noticeBar{
		margin-top: 32rpx;
		padding: 0 32rpx;
		/deep/ .uv-notice-bar{
			background: #fff !important;
			border-radius: 8rpx !important;
			padding: 0 0 0 24rpx;
			height: 54rpx;
			line-height: 54rpx;
			.uv-notice__left-icon{
				.uv-icon__icon{
					color: #418AFF !important;
				}
			}
			.uv-notice__content{
				.uv-notice__content__text{
					text{
						color: #418AFF !important;
					}
				}
			}
			.uv-notice__right-icon{
				display: none;
				.uv-icon{
					text{
						color: #418AFF !important;
					}
				}
			}
		}
	}

	.index_fix_top_box {
		width: 750rpx;
		/*padding-bottom: 10rpx;*/
		position: relative;
		.indexFixBack{
			width: 100%;
			height: 100%;
			position: absolute;
			top: 0;
			left: 0;
		}
		.indexFixMain{
			position: relative;
			z-index: 2;
		}

		.navbar_wrapper {
			height: 60rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;

			.navbar_wrapper_right {
				width: 72rpx;
				height: 72rpx;
				/*display: flex;
				align-items: center;
				justify-content: center;
				background-color: rgba(255, 255, 255, 0.1);*/
				margin-right: 24rpx;
				border-radius: 50%;
				position: relative;

				/*.navbar_wrapper_right_dian {
					position: absolute;
					width: 12rpx;
					height: 12rpx;
					background-color: rgba(255, 77, 79, 1);
					border-radius: 50%;
					top: 0;
					right: 0;
				}*/

				image {
					width: 72rpx;
					height: 72rpx;
				}
			}

			.navbar_wrapper_left {
				display: flex;
				align-items: center;

				.navbar_wrapper_left_icon {
					width: 72rpx;
					height: 72rpx;
					display: flex;
					align-items: center;
					justify-content: center;
					background-color: rgba(255, 255, 255, 0.1);
					margin-left: 24rpx;
					border-radius: 50%;

					image {
						width: 100%;
						height: 100%;
					}
				}

				.navbar_wrapper_left_status {
					width: 220rpx;
					height: 72rpx;
					background-color: rgba(255, 255, 255, 1);
					border-radius: 72rpx;
					display: flex;
					align-items: center;
					justify-content: space-between;
					margin-left: 32rpx;
					box-sizing: border-box;
					padding: 0 16rpx;

					.navbar_wrapper_left_status_icon {
						width: 32rpx;
						height: 32rpx;
						margin-top: -8rpx;
						image {
							width: 100%;
							height: 100%;
						}
					}

					.navbar_wrapper_left_status_text {
						width: 88rpx;
						color: #333;
						font-size: 28rpx;
						margin-left: 10rpx;
					}

					.navbar_wrapper_left_status_icon1 {
						width: 36rpx;
						height: 36rpx;
						display: flex;
						align-items: center;
						justify-content: center;

						image {
							width: 36rpx;
							height: 36rpx;
						}
					}
				}
			}

		}
	}
</style>
